1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-12 11:26:11 -05:00

Added fftwf-wisdom option to specify FFTW wisdom file

This commit is contained in:
f4exb 2020-03-11 18:19:56 +01:00
parent d9e2d3e916
commit 8e8323e925
2 changed files with 10 additions and 1 deletions

View File

@ -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()

View File

@ -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;
};