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.
sdrbase
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
27
class
SDRBASE_API
MainParser
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
;
41
uint16_t
m_serverPort
;
42
bool
m_mimoSupport
;
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_ */
MainParser::m_mimoOption
QCommandLineOption m_mimoOption
Definition:
mainparser.h:47
export.h
MainParser::getMIMOSupport
bool getMIMOSupport() const
Definition:
mainparser.h:37
MainParser::m_serverAddressOption
QCommandLineOption m_serverAddressOption
Definition:
mainparser.h:45
MainParser::m_parser
QCommandLineParser m_parser
Definition:
mainparser.h:44
MainParser::m_serverPortOption
QCommandLineOption m_serverPortOption
Definition:
mainparser.h:46
uint16_t
unsigned short uint16_t
Definition:
rtptypes_win.h:44
MainParser
Definition:
mainparser.h:27
MainParser::m_mimoSupport
bool m_mimoSupport
Definition:
mainparser.h:42
MainParser::m_serverAddress
QString m_serverAddress
Definition:
mainparser.h:40
MainParser::m_serverPort
uint16_t m_serverPort
Definition:
mainparser.h:41
SDRBASE_API
#define SDRBASE_API
Definition:
export.h:40
MainParser::getServerAddress
const QString & getServerAddress() const
Definition:
mainparser.h:35
MainParser::getServerPort
uint16_t getServerPort() const
Definition:
mainparser.h:36
Generated on Fri Aug 2 2019 17:56:33 for SDRAngel by
1.8.13