swift
Loading...
Searching...
No Matches
XSwiftBus::CConfig Class Reference

xswiftbus configuration class More...

#include <config.h>

Public Types

enum  DBusMode { DBusSession , DBusP2P }
 DBus Server Mode. More...

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.
const 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.

Member Enumeration Documentation

◆ DBusMode

DBus Server Mode.

Definition at line 18 of file config.h.

Constructor & Destructor Documentation

◆ CConfig()

XSwiftBus::CConfig::CConfig ( )

Constructor.

Definition at line 21 of file config.cpp.

◆ ~CConfig()

XSwiftBus::CConfig::~CConfig ( )

Destructor;.

Definition at line 23 of file config.cpp.

Member Function Documentation

◆ getDBusAddress()

const std::string & XSwiftBus::CConfig::getDBusAddress ( ) const
inline

Get current DBus server address.

Definition at line 43 of file config.h.

◆ getDBusMode()

DBusMode XSwiftBus::CConfig::getDBusMode ( ) const
inline

Get current DBus mode.

Definition at line 40 of file config.h.

◆ getDBusPort()

int XSwiftBus::CConfig::getDBusPort ( ) const
inline

Get current DBus server port.

Definition at line 46 of file config.h.

◆ getDebugMode()

bool XSwiftBus::CConfig::getDebugMode ( ) const
inline

Get debug on/off.

Definition at line 49 of file config.h.

◆ getTcasEnabled()

bool XSwiftBus::CConfig::getTcasEnabled ( ) const
inline

Get TCAS traffic on/off.

Definition at line 55 of file config.h.

◆ parse()

void XSwiftBus::CConfig::parse ( )

Load and parse config file.

Definition at line 25 of file config.cpp.

◆ print()

void XSwiftBus::CConfig::print ( )

Print the current configuration to the X-Plane log.

Definition at line 93 of file config.cpp.

◆ setDebugMode()

void XSwiftBus::CConfig::setDebugMode ( bool on)
inline

Set debug mode.

Definition at line 52 of file config.h.

◆ setFilePath()

void XSwiftBus::CConfig::setFilePath ( const std::string & filePath)
inline

Set config file path.

Definition at line 31 of file config.h.

◆ setTcasEnabled()

void XSwiftBus::CConfig::setTcasEnabled ( bool on)
inline

Set TCAS traffic on/off.

Definition at line 58 of file config.h.

◆ writeConfig()

bool XSwiftBus::CConfig::writeConfig ( bool tcas,
bool debug )

Update and write config file.

Definition at line 101 of file config.cpp.


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