sensorfw: sensord/parser.h Source File

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{
35public:
36
37 Parser(QStringList arguments);
38 ~Parser();
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;
49 bool magnetometerCalibration() 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
Parser
Definition: parser.h:34
Parser::getLogLevel
QtMsgType getLogLevel() const
Parser::contextInfo
bool contextInfo() const
Parser::~Parser
~Parser()
Parser::configFileInput
bool configFileInput() const
Parser::Parser
Parser(QStringList arguments)
Parser::configFilePath
const QString & configFilePath() const
Parser::configDirInput
bool configDirInput() const
Parser::magnetometerCalibration
bool magnetometerCalibration() const
Parser::createDaemon
bool createDaemon() const
Parser::configDirPath
const QString & configDirPath() const
Parser::printHelp
bool printHelp() const
Parser::notifySystemd
bool notifySystemd() const
Parser::deviceInfo
bool deviceInfo() const