From 8e8323e925e534a76ddf00aa7809b66532b304b0 Mon Sep 17 00:00:00 2001 From: f4exb Date: Wed, 11 Mar 2020 18:19:56 +0100 Subject: [PATCH] Added fftwf-wisdom option to specify FFTW wisdom file --- sdrbase/mainparser.cpp | 8 +++++++- sdrbase/mainparser.h | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/sdrbase/mainparser.cpp b/sdrbase/mainparser.cpp index 5c7f21534..9dfcd514c 100644 --- a/sdrbase/mainparser.cpp +++ b/sdrbase/mainparser.cpp @@ -30,11 +30,16 @@ MainParser::MainParser() : m_serverPortOption(QStringList() << "p" << "api-port", "Web API server port.", "port", - "8091") + "8091"), + m_fftwfWisdomOption(QStringList() << "w" << "fftwf-wisdom", + "FFTW Wisdom file.", + "file", + "") { m_serverAddress = "127.0.0.1"; m_serverPort = 8091; m_mimoSupport = false; + m_fftwfWindowFileName = ""; m_parser.setApplicationDescription("Software Defined Radio application"); m_parser.addHelpOption(); @@ -42,6 +47,7 @@ MainParser::MainParser() : m_parser.addOption(m_serverAddressOption); m_parser.addOption(m_serverPortOption); + m_parser.addOption(m_fftwfWisdomOption); } MainParser::~MainParser() diff --git a/sdrbase/mainparser.h b/sdrbase/mainparser.h index 55066886f..100752798 100644 --- a/sdrbase/mainparser.h +++ b/sdrbase/mainparser.h @@ -35,15 +35,18 @@ public: const QString& getServerAddress() const { return m_serverAddress; } uint16_t getServerPort() const { return m_serverPort; } bool getMIMOSupport() const { return m_mimoSupport; } + const QString& getFFTWFWisdomFileName() const { return m_fftwfWindowFileName; } private: QString m_serverAddress; uint16_t m_serverPort; + QString m_fftwfWindowFileName; bool m_mimoSupport; //!< obtained from major version QCommandLineParser m_parser; QCommandLineOption m_serverAddressOption; QCommandLineOption m_serverPortOption; + QCommandLineOption m_fftwfWisdomOption; };