ALMaSS Rabbit ODdox  1.00
The rabbit model description following ODdox protocol
Public Member Functions | Private Attributes | List of all members
CfgBase Class Reference

Base class for a configurator entry. More...

#include <configurator.h>

Inheritance diagram for CfgBase:
CfgBool CfgFloat CfgInt CfgStr

Public Member Functions

 CfgBase (const char *a_key, CfgSecureLevel a_level)
 
virtual ~CfgBase (void)
 
const string getkey (void)
 
virtual CfgType gettype (void)
 
CfgSecureLevel getlevel (void)
 

Private Attributes

string m_key
 
CfgSecureLevel m_level
 

Detailed Description

Base class for a configurator entry.

Definition at line 69 of file configurator.h.

Constructor & Destructor Documentation

CfgBase::CfgBase ( const char *  a_key,
CfgSecureLevel  a_level 
)

Definition at line 73 of file configurator.cpp.

References Configurator::Configurator(), and Configurator::Register().

74 {
75  if ( NULL == g_cfg ) {
76  g_cfg = new Configurator;
77  }
78 
79  m_key = a_key;
80  m_level = a_level;
81  g_cfg->Register( this, a_key );
82 }
A class to provide standard parameter entry facilities.
Definition: configurator.h:148
string m_key
Definition: configurator.h:70
class Configurator * g_cfg
CfgSecureLevel m_level
Definition: configurator.h:71
bool Register(CfgBase *a_cfgval, const char *a_key)
CfgBase::~CfgBase ( void  )
virtual

Definition at line 86 of file configurator.cpp.

87 {
88  ;
89 }

Member Function Documentation

const string CfgBase::getkey ( void  )
inline

Definition at line 77 of file configurator.h.

Referenced by Configurator::ShowIdType().

77 { return m_key; }
string m_key
Definition: configurator.h:70
CfgSecureLevel CfgBase::getlevel ( void  )
inline
virtual CfgType CfgBase::gettype ( void  )
inlinevirtual

Reimplemented in CfgStr, CfgBool, CfgFloat, and CfgInt.

Definition at line 78 of file configurator.h.

References CFG_NONE.

78 { return CFG_NONE; }

Member Data Documentation

string CfgBase::m_key
private

Definition at line 70 of file configurator.h.

CfgSecureLevel CfgBase::m_level
private

Definition at line 71 of file configurator.h.


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