ALMaSS Partridge ODdox  1.1
The partridge model description following ODdox protocol
CfgStr Class Reference

String configurator entry class. More...

#include <configurator.h>

Inheritance diagram for CfgStr:
CfgBase

Public Member Functions

 CfgStr (const char *a_key, CfgSecureLevel a_level, const char *a_defval)
 
const char * value (void)
 
void set (char *a_newval)
 
virtual CfgType gettype (void)
 
- Public Member Functions inherited from CfgBase
 CfgBase (const char *a_key, CfgSecureLevel a_level)
 
virtual ~CfgBase (void)
 
const string getkey (void)
 
CfgSecureLevel getlevel (void)
 

Protected Attributes

string m_string
 
- Protected Attributes inherited from CfgBase
string m_key
 
CfgSecureLevel m_level
 
bool m_rangetest
 

Detailed Description

String configurator entry class.

Definition at line 144 of file configurator.h.

Constructor & Destructor Documentation

◆ CfgStr()

CfgStr::CfgStr ( const char *  a_key,
CfgSecureLevel  a_level,
const char *  a_defval 
)

Definition at line 158 of file configurator.cpp.

161  :CfgBase( a_key, a_level )
162 {
163  m_string = a_defval;
164 }

References m_string.

Member Function Documentation

◆ gettype()

virtual CfgType CfgStr::gettype ( void  )
inlinevirtual

Reimplemented from CfgBase.

Definition at line 154 of file configurator.h.

154 { return CFG_STRING; }

References CFG_STRING.

◆ set()

void CfgStr::set ( char *  a_newval)
inline

Definition at line 153 of file configurator.h.

153 { m_string = a_newval; }

◆ value()

Member Data Documentation

◆ m_string

string CfgStr::m_string
protected

Definition at line 147 of file configurator.h.

Referenced by CfgStr().


The documentation for this class was generated from the following files:
CFG_STRING
Definition: configurator.h:56
CfgBase::CfgBase
CfgBase(const char *a_key, CfgSecureLevel a_level)
Definition: configurator.cpp:73
CfgStr::m_string
string m_string
Definition: configurator.h:147