SDRPlusPlus/core/src/options.h

18 wiersze
346 B
C
Czysty Zwykły widok Historia

2020-12-15 22:05:11 +00:00
#pragma once
#include <string>
2020-12-22 19:00:51 +00:00
#include <module.h>
2020-12-15 22:05:11 +00:00
namespace options {
struct CMDLineOptions {
std::string root;
2021-02-06 20:28:27 +00:00
bool showConsole;
2021-07-23 04:29:16 +00:00
bool serverMode;
2022-01-21 19:22:13 +00:00
std::string serverHost;
int serverPort;
2020-12-15 22:05:11 +00:00
};
2020-12-22 13:50:26 +00:00
SDRPP_EXPORT CMDLineOptions opts;
2020-12-15 22:05:11 +00:00
2020-12-22 13:50:26 +00:00
void loadDefaults();
bool parse(int argc, char* argv[]);
2020-12-22 13:50:26 +00:00
}