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.
parserbench.h
Go to the documentation of this file.
1 // Copyright (C) 2018 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 SDRBENCH_PARSERBENCH_H_
20 #define SDRBENCH_PARSERBENCH_H_
21 
22 #include <QCommandLineParser>
23 #include <stdint.h>
24 
26 {
27 public:
28  typedef enum
29  {
37  } TestType;
38 
39  ParserBench();
40  ~ParserBench();
41 
42  void parse(const QCoreApplication& app);
43 
44  const QString& getTestStr() const { return m_testStr; }
45  TestType getTestType() const;
46  uint32_t getNbSamples() const { return m_nbSamples; }
47  uint32_t getRepetition() const { return m_repetition; }
48  uint32_t getLog2Factor() const { return m_log2Factor; }
49 
50 private:
51  QString m_testStr;
55 
56  QCommandLineParser m_parser;
57  QCommandLineOption m_testOption;
58  QCommandLineOption m_nbSamplesOption;
59  QCommandLineOption m_repetitionOption;
60  QCommandLineOption m_log2FactorOption;
61 };
62 
63 
64 
65 #endif /* SDRBENCH_PARSERBENCH_H_ */
QCommandLineParser m_parser
Definition: parserbench.h:56
uint32_t getRepetition() const
Definition: parserbench.h:47
void parse(const QCoreApplication &app)
Definition: parserbench.cpp:61
uint32_t m_repetition
Definition: parserbench.h:53
unsigned int uint32_t
Definition: rtptypes_win.h:46
QCommandLineOption m_log2FactorOption
Definition: parserbench.h:60
uint32_t getLog2Factor() const
Definition: parserbench.h:48
uint32_t m_log2Factor
Definition: parserbench.h:54
const QString & getTestStr() const
Definition: parserbench.h:44
QCommandLineOption m_nbSamplesOption
Definition: parserbench.h:58
QCommandLineOption m_repetitionOption
Definition: parserbench.h:59
uint32_t getNbSamples() const
Definition: parserbench.h:46
QCommandLineOption m_testOption
Definition: parserbench.h:57
TestType getTestType() const
uint32_t m_nbSamples
Definition: parserbench.h:52
QString m_testStr
Definition: parserbench.h:51