sensorfw
parser.h
Go to the documentation of this file.
1 
26 #ifndef PARSER_H
27 #define PARSER_H
28 
29 #include <QString>
30 #include <QStringList>
31 #include "logging.h"
32 
33 class Parser
34 {
35 public:
36 
37  Parser(QStringList arguments);
39 
40  bool printHelp() const;
41  QtMsgType getLogLevel() const;
42 
43  bool configFileInput() const;
44  const QString& configFilePath() const;
45  bool configDirInput() const;
46  const QString& configDirPath() const;
47 
48  bool contextInfo() const;
50  bool createDaemon() const;
51  bool notifySystemd() const;
52 
53 private:
54  void parsingCommandLine(QStringList arguments);
55 
56  bool printHelp_;
57  bool contextInfo_;
58  bool configFile_;
59  bool configDir_;
60  bool daemon_;
61  bool systemd_;
62  bool magnetometerCalibration_;
63 
64  QString configFilePath_;
65  QString configDirPath_;
66  QtMsgType logLevel_;
67 };
68 
69 #endif // PARSER_H
Definition: parser.h:34
QtMsgType getLogLevel() const
bool contextInfo() const
bool configFileInput() const
const QString & configFilePath() const
Parser(QStringList arguments)
bool configDirInput() const
bool magnetometerCalibration() const
bool createDaemon() const
bool printHelp() const
const QString & configDirPath() const
bool notifySystemd() const