SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
mainparser.h
Go to the documentation of this file.
1 // Copyright (C) 2017 F4EXB //
3 // written by Edouard Griffiths //
4 // //
5 // This program is free software; you can redistribute it and/or modify //
6 // it under the terms of the GNU General Public License as published by //
7 // the Free Software Foundation as version 3 of the License, or //
8 // (at your option) any later version. //
9 // //
10 // This program is distributed in the hope that it will be useful, //
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of //
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
13 // GNU General Public License V3 for more details. //
14 // //
15 // You should have received a copy of the GNU General Public License //
16 // along with this program. If not, see <http://www.gnu.org/licenses/>. //
18 
19 #ifndef SDRBASE_MAINPARSER_H_
20 #define SDRBASE_MAINPARSER_H_
21 
22 #include <QCommandLineParser>
23 #include <stdint.h>
24 
25 #include "export.h"
26 
28 {
29 public:
30  MainParser();
31  ~MainParser();
32 
33  void parse(const QCoreApplication& app);
34 
35  const QString& getServerAddress() const { return m_serverAddress; }
36  uint16_t getServerPort() const { return m_serverPort; }
37  bool getMIMOSupport() const { return m_mimoSupport; }
38 
39 private:
40  QString m_serverAddress;
43 
44  QCommandLineParser m_parser;
45  QCommandLineOption m_serverAddressOption;
46  QCommandLineOption m_serverPortOption;
47  QCommandLineOption m_mimoOption;
48 };
49 
50 
51 
52 #endif /* SDRBASE_MAINPARSER_H_ */
QCommandLineOption m_mimoOption
Definition: mainparser.h:47
bool getMIMOSupport() const
Definition: mainparser.h:37
QCommandLineOption m_serverAddressOption
Definition: mainparser.h:45
QCommandLineParser m_parser
Definition: mainparser.h:44
QCommandLineOption m_serverPortOption
Definition: mainparser.h:46
unsigned short uint16_t
Definition: rtptypes_win.h:44
bool m_mimoSupport
Definition: mainparser.h:42
QString m_serverAddress
Definition: mainparser.h:40
uint16_t m_serverPort
Definition: mainparser.h:41
#define SDRBASE_API
Definition: export.h:40
const QString & getServerAddress() const
Definition: mainparser.h:35
uint16_t getServerPort() const
Definition: mainparser.h:36