Go to the documentation of this file.00001
00026 #ifndef PARSER_H
00027 #define PARSER_H
00028
00029 #include <QString>
00030 #include <QStringList>
00031 #include "logging.h"
00032
00033 class Parser
00034 {
00035 public:
00036
00037 Parser(QStringList arguments);
00038 ~Parser();
00039
00040 bool printHelp() const;
00041 bool changeLogLevel() const;
00042 SensordLogLevel getLogLevel() const;
00043
00044 bool configFileInput() const;
00045 const QString& configFilePath() const;
00046
00047 bool contextInfo() const;
00048 bool magnetometerCalibration() const;
00049 bool createDaemon() const;
00050 int logTarget() const;
00051 const QString& logFilePath() const;
00052
00053 private:
00054 void parsingCommandLine(QStringList arguments);
00055
00056 bool printHelp_;
00057 bool contextInfo_;
00058 bool changeLogLevel_;
00059 bool configFile_;
00060 bool daemon_;
00061 bool magnetometerCalibration_;
00062
00063 QString configFilePath_;
00064 SensordLogLevel logLevel_;
00065 int logTarget_;
00066 QString logFilePath_;
00067 };
00068
00069 #endif // PARSER_H