mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-04 07:51:14 -05:00
77 lines
2.9 KiB
C++
77 lines
2.9 KiB
C++
///////////////////////////////////////////////////////////////////////////////////
|
|
// Copyright (C) 2012 maintech GmbH, Otto-Hahn-Str. 15, 97204 Hoechberg, Germany //
|
|
// written by Christian Daniel //
|
|
// Copyright (C) 2015-2019, 2021-2023 Edouard Griffiths, F4EXB <f4exb06@gmail.com> //
|
|
// Copyright (C) 2020 Kacper Michajłow <kasper93@gmail.com> //
|
|
// //
|
|
// 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 //
|
|
// (at your option) any later version. //
|
|
// //
|
|
// 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>
|
|
|
|
#include "export.h"
|
|
|
|
class SDRBENCH_API ParserBench
|
|
{
|
|
public:
|
|
typedef enum
|
|
{
|
|
TestDecimatorsII,
|
|
TestDecimatorsIF,
|
|
TestDecimatorsFI,
|
|
TestDecimatorsFF,
|
|
TestDecimatorsInfII,
|
|
TestDecimatorsSupII,
|
|
TestGolay2312,
|
|
TestFT8
|
|
} TestType;
|
|
|
|
ParserBench();
|
|
~ParserBench();
|
|
|
|
void parse(const QCoreApplication& app);
|
|
|
|
const QString& getTestStr() const { return m_testStr; }
|
|
TestType getTestType() const;
|
|
uint32_t getNbSamples() const { return m_nbSamples; }
|
|
uint32_t getRepetition() const { return m_repetition; }
|
|
uint32_t getLog2Factor() const { return m_log2Factor; }
|
|
const QString& getFileName() const { return m_fileName; }
|
|
const QString& getArgsStr() const { return m_argsStr; }
|
|
|
|
private:
|
|
QString m_testStr;
|
|
uint32_t m_nbSamples;
|
|
uint32_t m_repetition;
|
|
uint32_t m_log2Factor;
|
|
QString m_fileName;
|
|
QString m_argsStr;
|
|
|
|
QCommandLineParser m_parser;
|
|
QCommandLineOption m_testOption;
|
|
QCommandLineOption m_nbSamplesOption;
|
|
QCommandLineOption m_repetitionOption;
|
|
QCommandLineOption m_log2FactorOption;
|
|
QCommandLineOption m_fileOption;
|
|
QCommandLineOption m_argsOption;
|
|
};
|
|
|
|
|
|
|
|
#endif /* SDRBENCH_PARSERBENCH_H_ */
|