swift
|
xswiftbus configuration class More...
Public Types | |
enum | DBusMode { DBusSession , DBusP2P } |
DBus Server Mode. | |
Public Member Functions | |
CConfig () | |
Constructor. | |
~CConfig () | |
Destructor;. | |
void | setFilePath (const std::string &filePath) |
Set config file path. | |
void | parse () |
Load and parse config file. | |
void | print () |
Print the current configuration to the X-Plane log. | |
DBusMode | getDBusMode () const |
Get current DBus mode. | |
std::string | getDBusAddress () const |
Get current DBus server address. | |
int | getDBusPort () const |
Get current DBus server port. | |
bool | getDebugMode () const |
Get debug on/off. | |
void | setDebugMode (bool on) |
Set debug mode. | |
bool | getTcasEnabled () const |
Get TCAS traffic on/off. | |
void | setTcasEnabled (bool on) |
Set TCAS traffic on/off. | |
bool | writeConfig (bool tcas, bool debug) |
Update and write config file. | |