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
33class Parser
34{
35public:
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
53private:
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
Parser(QStringList arguments)
const QString & configFilePath() const
bool configDirInput() const
bool magnetometerCalibration() const
bool createDaemon() const
const QString & configDirPath() const
bool printHelp() const
bool notifySystemd() const