Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef TIMEREADER_H
00028 #define TIMEREADER_H
00029
00030 #include <QGpCoreTools.h>
00031
00032 class TimeReader : public ArgumentStdinReader
00033 {
00034 TRANSLATIONS("TimeReader")
00035 public:
00036 TimeReader();
00037
00038 bool setOptions(int& argc, char ** argv);
00039 protected:
00040 virtual bool parse(QTextStream& s);
00041 private:
00042 DateTime inDateTime(const QString& s, bool& ok);
00043 QString outDateTime(const DateTime& dt);
00044
00045 enum Action {None, Convert};
00046 enum Mode {Absolute, Relative};
00047 Mode _mode;
00048 Action _action;
00049 int _startByte, _endByte, _column;
00050 QString _delimiters;
00051 QString _inFormat, _outFormat;
00052 int _outputPrecision;
00053 bool _verbose;
00054 };
00055
00056 #endif // TIMEREADER_H