2018-04-23 10:43:18 -04:00
|
|
|
///////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Copyright (C) 2018 F4EXB //
|
|
|
|
// written by Edouard Griffiths //
|
|
|
|
// //
|
|
|
|
// This program is free software; you can redistribute it and/or modify //
|
|
|
|
// it under the terms of the GNU General Public License as published by //
|
|
|
|
// the Free Software Foundation as version 3 of the License, or //
|
|
|
|
// //
|
|
|
|
// This program is distributed in the hope that it will be useful, //
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
|
|
|
|
// GNU General Public License V3 for more details. //
|
|
|
|
// //
|
|
|
|
// You should have received a copy of the GNU General Public License //
|
|
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef SDRBENCH_PARSERBENCH_H_
|
|
|
|
#define SDRBENCH_PARSERBENCH_H_
|
|
|
|
|
|
|
|
#include <QCommandLineParser>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
class ParserBench
|
|
|
|
{
|
|
|
|
public:
|
2018-04-24 19:44:54 -04:00
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
TestDecimatorsII,
|
2018-05-01 13:49:47 -04:00
|
|
|
TestDecimatorsIF,
|
2018-04-25 12:01:01 -04:00
|
|
|
TestDecimatorsFI,
|
2018-05-09 15:50:41 -04:00
|
|
|
TestDecimatorsFF,
|
|
|
|
TestDecimatorsInfII,
|
|
|
|
TestDecimatorsSupII
|
2018-04-24 19:44:54 -04:00
|
|
|
} TestType;
|
|
|
|
|
2018-04-23 10:43:18 -04:00
|
|
|
ParserBench();
|
|
|
|
~ParserBench();
|
|
|
|
|
|
|
|
void parse(const QCoreApplication& app);
|
|
|
|
|
2018-04-24 19:44:54 -04:00
|
|
|
const QString& getTestStr() const { return m_testStr; }
|
|
|
|
TestType getTestType() const;
|
2018-04-23 10:43:18 -04:00
|
|
|
uint32_t getNbSamples() const { return m_nbSamples; }
|
|
|
|
uint32_t getRepetition() const { return m_repetition; }
|
|
|
|
uint32_t getLog2Factor() const { return m_log2Factor; }
|
|
|
|
|
|
|
|
private:
|
2018-04-24 19:44:54 -04:00
|
|
|
QString m_testStr;
|
2018-04-23 10:43:18 -04:00
|
|
|
uint32_t m_nbSamples;
|
|
|
|
uint32_t m_repetition;
|
|
|
|
uint32_t m_log2Factor;
|
|
|
|
|
|
|
|
QCommandLineParser m_parser;
|
|
|
|
QCommandLineOption m_testOption;
|
|
|
|
QCommandLineOption m_nbSamplesOption;
|
|
|
|
QCommandLineOption m_repetitionOption;
|
|
|
|
QCommandLineOption m_log2FactorOption;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* SDRBENCH_PARSERBENCH_H_ */
|