mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-13 20:01:46 -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",
|
m_serverPortOption(QStringList() << "p" << "api-port",
|
||||||
"Web API server port.",
|
"Web API server port.",
|
||||||
"port",
|
"port",
|
||||||
"8091")
|
"8091"),
|
||||||
|
m_fftwfWisdomOption(QStringList() << "w" << "fftwf-wisdom",
|
||||||
|
"FFTW Wisdom file.",
|
||||||
|
"file",
|
||||||
|
"")
|
||||||
{
|
{
|
||||||
m_serverAddress = "127.0.0.1";
|
m_serverAddress = "127.0.0.1";
|
||||||
m_serverPort = 8091;
|
m_serverPort = 8091;
|
||||||
m_mimoSupport = false;
|
m_mimoSupport = false;
|
||||||
|
m_fftwfWindowFileName = "";
|
||||||
|
|
||||||
m_parser.setApplicationDescription("Software Defined Radio application");
|
m_parser.setApplicationDescription("Software Defined Radio application");
|
||||||
m_parser.addHelpOption();
|
m_parser.addHelpOption();
|
||||||
@ -42,6 +47,7 @@ MainParser::MainParser() :
|
|||||||
|
|
||||||
m_parser.addOption(m_serverAddressOption);
|
m_parser.addOption(m_serverAddressOption);
|
||||||
m_parser.addOption(m_serverPortOption);
|
m_parser.addOption(m_serverPortOption);
|
||||||
|
m_parser.addOption(m_fftwfWisdomOption);
|
||||||
}
|
}
|
||||||
|
|
||||||
MainParser::~MainParser()
|
MainParser::~MainParser()
|
||||||
|
@ -35,15 +35,18 @@ public:
|
|||||||
const QString& getServerAddress() const { return m_serverAddress; }
|
const QString& getServerAddress() const { return m_serverAddress; }
|
||||||
uint16_t getServerPort() const { return m_serverPort; }
|
uint16_t getServerPort() const { return m_serverPort; }
|
||||||
bool getMIMOSupport() const { return m_mimoSupport; }
|
bool getMIMOSupport() const { return m_mimoSupport; }
|
||||||
|
const QString& getFFTWFWisdomFileName() const { return m_fftwfWindowFileName; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QString m_serverAddress;
|
QString m_serverAddress;
|
||||||
uint16_t m_serverPort;
|
uint16_t m_serverPort;
|
||||||
|
QString m_fftwfWindowFileName;
|
||||||
bool m_mimoSupport; //!< obtained from major version
|
bool m_mimoSupport; //!< obtained from major version
|
||||||
|
|
||||||
QCommandLineParser m_parser;
|
QCommandLineParser m_parser;
|
||||||
QCommandLineOption m_serverAddressOption;
|
QCommandLineOption m_serverAddressOption;
|
||||||
QCommandLineOption m_serverPortOption;
|
QCommandLineOption m_serverPortOption;
|
||||||
|
QCommandLineOption m_fftwfWisdomOption;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user