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:
parent
d9e2d3e916
commit
8e8323e925
@ -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()
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user