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 bool deviceInfo() const;
53
54private:
55 void parsingCommandLine(QStringList arguments);
56
57 bool printHelp_;
58 bool contextInfo_;
59 bool configFile_;
60 bool configDir_;
61 bool daemon_;
62 bool systemd_;
63 bool magnetometerCalibration_;
64 bool deviceInfo_;
65
66 QString configFilePath_;
67 QString configDirPath_;
68 QtMsgType logLevel_;
69};
70
71#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
bool deviceInfo() const