| 
									
										
										
										
											2018-04-23 16:43:18 +02:00
										 |  |  | ///////////////////////////////////////////////////////////////////////////////////
 | 
					
						
							| 
									
										
										
										
											2023-11-19 05:24:06 +01:00
										 |  |  | // 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>                      //
 | 
					
						
							| 
									
										
										
										
											2018-04-23 16:43:18 +02:00
										 |  |  | //                                                                               //
 | 
					
						
							|  |  |  | // 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                  //
 | 
					
						
							| 
									
										
										
										
											2019-04-11 14:47:17 +02:00
										 |  |  | // (at your option) any later version.                                           //
 | 
					
						
							| 
									
										
										
										
											2018-04-23 16:43:18 +02:00
										 |  |  | //                                                                               //
 | 
					
						
							|  |  |  | // 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>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-19 17:40:01 +01:00
										 |  |  | #include "export.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-20 19:47:04 +01:00
										 |  |  | class SDRBENCH_API ParserBench | 
					
						
							| 
									
										
										
										
											2018-04-23 16:43:18 +02:00
										 |  |  | { | 
					
						
							|  |  |  | public: | 
					
						
							| 
									
										
										
										
											2018-04-25 01:44:54 +02:00
										 |  |  |     typedef enum | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         TestDecimatorsII, | 
					
						
							| 
									
										
										
										
											2018-05-01 19:49:47 +02:00
										 |  |  |         TestDecimatorsIF, | 
					
						
							| 
									
										
										
										
											2018-04-25 18:01:01 +02:00
										 |  |  |         TestDecimatorsFI, | 
					
						
							| 
									
										
										
										
											2018-05-09 21:50:41 +02:00
										 |  |  |         TestDecimatorsFF, | 
					
						
							|  |  |  |         TestDecimatorsInfII, | 
					
						
							| 
									
										
										
										
											2019-07-19 01:37:22 +02:00
										 |  |  |         TestDecimatorsSupII, | 
					
						
							| 
									
										
										
										
											2023-01-08 19:03:29 +01:00
										 |  |  |         TestGolay2312, | 
					
						
							| 
									
										
										
										
											2024-03-07 14:48:54 +01:00
										 |  |  |         TestFT8, | 
					
						
							| 
									
										
										
										
											2024-03-28 15:15:48 +01:00
										 |  |  |         TestCallsign, | 
					
						
							|  |  |  |         TestFT8Protocols | 
					
						
							| 
									
										
										
										
											2018-04-25 01:44:54 +02:00
										 |  |  |     } TestType; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-20 19:47:04 +01:00
										 |  |  |     ParserBench(); | 
					
						
							|  |  |  |     ~ParserBench(); | 
					
						
							| 
									
										
										
										
											2018-04-23 16:43:18 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-20 19:47:04 +01:00
										 |  |  |     void parse(const QCoreApplication& app); | 
					
						
							| 
									
										
										
										
											2018-04-23 16:43:18 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-04-25 01:44:54 +02:00
										 |  |  |     const QString& getTestStr() const { return m_testStr; } | 
					
						
							|  |  |  |     TestType getTestType() const; | 
					
						
							| 
									
										
										
										
											2018-04-23 16:43:18 +02:00
										 |  |  |     uint32_t getNbSamples() const { return m_nbSamples; } | 
					
						
							|  |  |  |     uint32_t getRepetition() const { return m_repetition; } | 
					
						
							|  |  |  |     uint32_t getLog2Factor() const { return m_log2Factor; } | 
					
						
							| 
									
										
										
										
											2023-01-09 00:38:15 +01:00
										 |  |  |     const QString& getFileName() const { return m_fileName; } | 
					
						
							| 
									
										
										
										
											2023-01-12 01:02:38 +01:00
										 |  |  |     const QString& getArgsStr() const { return m_argsStr; } | 
					
						
							| 
									
										
										
										
											2018-04-23 16:43:18 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | private: | 
					
						
							| 
									
										
										
										
											2018-04-25 01:44:54 +02:00
										 |  |  |     QString  m_testStr; | 
					
						
							| 
									
										
										
										
											2018-04-23 16:43:18 +02:00
										 |  |  |     uint32_t m_nbSamples; | 
					
						
							|  |  |  |     uint32_t m_repetition; | 
					
						
							|  |  |  |     uint32_t m_log2Factor; | 
					
						
							| 
									
										
										
										
											2023-01-09 00:38:15 +01:00
										 |  |  |     QString m_fileName; | 
					
						
							| 
									
										
										
										
											2023-01-12 01:02:38 +01:00
										 |  |  |     QString m_argsStr; | 
					
						
							| 
									
										
										
										
											2018-04-23 16:43:18 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |     QCommandLineParser m_parser; | 
					
						
							|  |  |  |     QCommandLineOption m_testOption; | 
					
						
							|  |  |  |     QCommandLineOption m_nbSamplesOption; | 
					
						
							|  |  |  |     QCommandLineOption m_repetitionOption; | 
					
						
							|  |  |  |     QCommandLineOption m_log2FactorOption; | 
					
						
							| 
									
										
										
										
											2023-01-09 00:38:15 +01:00
										 |  |  |     QCommandLineOption m_fileOption; | 
					
						
							| 
									
										
										
										
											2023-01-12 01:02:38 +01:00
										 |  |  |     QCommandLineOption m_argsOption; | 
					
						
							| 
									
										
										
										
											2018-04-23 16:43:18 +02:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #endif /* SDRBENCH_PARSERBENCH_H_ */
 |