XPPlanes
X-Plane plugin to display additional planes based on network data
Public Member Functions | Public Attributes | List of all members
CfgInfoTy Class Reference

Defines an entry in the configuration file. More...

Public Member Functions

 CfgInfoTy (const char *_tag, int *pv)
 
 CfgInfoTy (const char *_tag, int &v)
 
 CfgInfoTy (const char *_tag, bool &v)
 
 CfgInfoTy (const char *_tag, std::string &v)
 
void LoadVal (const std::string &val)
 Load a given config value into the right variable using the right type. More...
 
std::string GetCfgLine () const
 Return a full config string to be stored into the config file, including tag and CR. More...
 

Public Attributes

const char * tag = nullptr
 name of the config entry in the config file More...
 
int * pInt = nullptr
 points to integer variable taking the value More...
 
bool * pBool = nullptr
 points to boolean variable taking the value More...
 
std::string * pStr = nullptr
 points to string variable taking the value More...
 

Detailed Description

Defines an entry in the configuration file.

Constructor & Destructor Documentation

◆ CfgInfoTy() [1/4]

CfgInfoTy::CfgInfoTy ( const char *  _tag,
int *  pv 
)
inline

◆ CfgInfoTy() [2/4]

CfgInfoTy::CfgInfoTy ( const char *  _tag,
int &  v 
)
inline

◆ CfgInfoTy() [3/4]

CfgInfoTy::CfgInfoTy ( const char *  _tag,
bool &  v 
)
inline

◆ CfgInfoTy() [4/4]

CfgInfoTy::CfgInfoTy ( const char *  _tag,
std::string &  v 
)
inline

Member Function Documentation

◆ GetCfgLine()

std::string CfgInfoTy::GetCfgLine ( ) const
inline

Return a full config string to be stored into the config file, including tag and CR.

◆ LoadVal()

void CfgInfoTy::LoadVal ( const std::string &  val)
inline

Load a given config value into the right variable using the right type.

Member Data Documentation

◆ pBool

bool* CfgInfoTy::pBool = nullptr

points to boolean variable taking the value

◆ pInt

int* CfgInfoTy::pInt = nullptr

points to integer variable taking the value

◆ pStr

std::string* CfgInfoTy::pStr = nullptr

points to string variable taking the value

◆ tag

const char* CfgInfoTy::tag = nullptr

name of the config entry in the config file


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