rambrain
rambrain::configLine< T > Class Template Reference

Class for config key value pairs represented by a line in a config file. More...

#include <configreader.h>

Inheritance diagram for rambrain::configLine< T >:
rambrain::configLineBase

Public Member Functions

 configLine (const string &name, const T &value, const int matchType)
 Create a new config option. More...
 
virtual ~configLine ()
 Destructor. More...
 
virtual void setValue (const string &str)
 Reset the value from a string. More...
 
template<>
void setValue (const string &str)
 
template<>
void setValue (const string &str)
 
template<>
void setValue (const string &str)
 
template<>
void setValue (const string &str)
 
template<>
void setValue (const string &str)
 
template<>
void setValue (const string &str)
 
- Public Member Functions inherited from rambrain::configLineBase
 configLineBase (const string &name, const int matchType)
 Create a new config line. More...
 
virtual ~configLineBase ()
 Destructor. More...
 

Public Attributes

value
 
- Public Attributes inherited from rambrain::configLineBase
const string name
 
const int matchType
 

Detailed Description

template<typename T>
class rambrain::configLine< T >

Class for config key value pairs represented by a line in a config file.

Definition at line 87 of file configreader.h.

Constructor & Destructor Documentation

template<typename T>
rambrain::configLine< T >::configLine ( const string &  name,
const T &  value,
const int  matchType 
)
inline

Create a new config option.

Parameters
nameIt's name
valueIt's starting value
matchTypeWhich type is matches against in the config file

Definition at line 96 of file configreader.h.

template<typename T>
virtual rambrain::configLine< T >::~configLine ( )
inlinevirtual

Destructor.

Definition at line 100 of file configreader.h.

Member Function Documentation

template<>
void rambrain::configLine< global_bytesize >::setValue ( const string &  str)

Definition at line 35 of file configreader.cpp.

template<>
void rambrain::configLine< bool >::setValue ( const string &  str)

Definition at line 73 of file configreader.cpp.

template<>
void rambrain::configLine< swapPolicy >::setValue ( const string &  str)

Definition at line 79 of file configreader.cpp.

template<typename T>
virtual void rambrain::configLine< T >::setValue ( const string &  str)
inlinevirtual

Reset the value from a string.

Parameters
strThe string

Implements rambrain::configLineBase.

Definition at line 106 of file configreader.h.

template<>
void rambrain::configLine< global_bytesize >::setValue ( const string &  str)

template<>
void rambrain::configLine< bool >::setValue ( const string &  str)

template<>
void rambrain::configLine< swapPolicy >::setValue ( const string &  str)

Member Data Documentation

template<typename T>
T rambrain::configLine< T >::value

Definition at line 110 of file configreader.h.


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