swift
Public Types | Public Member Functions | List of all members
XSwiftBus::CConfig Class Reference

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.
 

Detailed Description

xswiftbus configuration class

Definition at line 14 of file config.h.


The documentation for this class was generated from the following files: