hydrogen 1.2.6
Parser.h
Go to the documentation of this file.
1/*
2 * Hydrogen
3 * Copyright(c) 2008-2025 The hydrogen development team [hydrogen-devel@lists.sourceforge.net]
4 *
5 * http://www.hydrogen-music.org
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY, without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see https://www.gnu.org/licenses
19 *
20 */
21
22#ifndef PARSER_H
23#define PARSER_H
24
25#include <QString>
26
46class Parser {
47 public:
48
49 Parser();
50 ~Parser();
51
52 bool parse( int argc, char* argv[] );
53
54 const QString& getAudioDriver() const {
55 return m_sAudioDriver; }
56 const QString& getPlaylistFilename() const {
57 return m_sPlaylistFilename; }
58 const QString& getSongFilename() const {
59 return m_sSongFilename; }
60 const QString& getDrumkitToLoad() const {
61 return m_sDrumkitToLoad; }
62
63 const QString& getInstallDrumkitPath() const {
64 return m_sInstallDrumkitPath; }
65
66 unsigned getLogLevel() const {
67 return m_logLevel; }
68 const QString& getLogFile() const {
69 return m_sLogFile; }
70 bool getLogTimestamps() const {
71 return m_bLogTimestamps; }
72 bool getLogColors() const {return m_bLogColors; }
73
74 const QString& getSysDataPath() const {
75 return m_sSysDataPath; }
76 const QString& getUsrDataPath() const {
77 return m_sUsrDataPath; }
78 const QString& getConfigFilePath() const {
79 return m_sConfigFilePath; }
80 const QString& getUiLayout() const {
81 return m_sUiLayout; }
82 int getOscPort() const {
83 return m_nOscPort; }
84 bool getNoSplashScreen() const {
85 return m_bNoSplashScreen; }
86
87 const QString& getShotList() const {
88 return m_sShotList; }
89
90 bool getNoReporter() const {
91 return m_bNoReporter; }
92
93 private:
98
100
101 unsigned m_logLevel;
102 QString m_sLogFile;
105
109 QString m_sUiLayout;
112
113 QString m_sShotList;
114
116};
117
118#endif
QString m_sUiLayout
Definition Parser.h:109
int getOscPort() const
Definition Parser.h:82
bool getLogColors() const
Definition Parser.h:72
bool m_bLogColors
Definition Parser.h:104
QString m_sDrumkitToLoad
Definition Parser.h:97
QString m_sPlaylistFilename
Definition Parser.h:95
const QString & getUiLayout() const
Definition Parser.h:80
const QString & getLogFile() const
Definition Parser.h:68
const QString & getShotList() const
Definition Parser.h:87
const QString & getSysDataPath() const
Definition Parser.h:74
bool m_bNoReporter
Definition Parser.h:115
QString m_sAudioDriver
Definition Parser.h:94
QString m_sConfigFilePath
Definition Parser.h:108
QString m_sSongFilename
Definition Parser.h:96
QString m_sLogFile
Definition Parser.h:102
const QString & getDrumkitToLoad() const
Definition Parser.h:60
unsigned getLogLevel() const
Definition Parser.h:66
Parser()
Definition Parser.cpp:34
QString m_sUsrDataPath
Definition Parser.h:107
const QString & getInstallDrumkitPath() const
Definition Parser.h:63
const QString & getSongFilename() const
Definition Parser.h:58
bool m_bNoSplashScreen
Definition Parser.h:111
unsigned m_logLevel
Definition Parser.h:101
const QString & getAudioDriver() const
Definition Parser.h:54
QString m_sInstallDrumkitPath
Definition Parser.h:99
bool getNoSplashScreen() const
Definition Parser.h:84
QString m_sShotList
Definition Parser.h:113
bool parse(int argc, char *argv[])
Definition Parser.cpp:40
bool getLogTimestamps() const
Definition Parser.h:70
QString m_sSysDataPath
Definition Parser.h:106
const QString & getPlaylistFilename() const
Definition Parser.h:56
const QString & getConfigFilePath() const
Definition Parser.h:78
bool m_bLogTimestamps
Definition Parser.h:103
int m_nOscPort
Definition Parser.h:110
bool getNoReporter() const
Definition Parser.h:90
const QString & getUsrDataPath() const
Definition Parser.h:76
~Parser()
Definition Parser.cpp:37