nlsr::ConfigurationVariable< T > Class Template Reference

Public Types

typedef std::function< void(T)> ConfParameterCallback
 
typedef boost::property_tree::ptree ConfigSection
 

Public Member Functions

 ConfigurationVariable (const std::string &key, const ConfParameterCallback &setter)
 
bool parseFromConfigSection (const ConfigSection &section)
 
void setMinAndMaxValue (T min, T max)
 
void setOptional (T defaultValue)
 

Detailed Description

template<class T>
class nlsr::ConfigurationVariable< T >

Definition at line 38 of file conf-file-processor.cpp.

Member Typedef Documentation

template<class T>
typedef boost::property_tree::ptree nlsr::ConfigurationVariable< T >::ConfigSection

Definition at line 42 of file conf-file-processor.cpp.

template<class T>
typedef std::function<void(T)> nlsr::ConfigurationVariable< T >::ConfParameterCallback

Definition at line 41 of file conf-file-processor.cpp.

Constructor & Destructor Documentation

template<class T>
nlsr::ConfigurationVariable< T >::ConfigurationVariable ( const std::string &  key,
const ConfParameterCallback setter 
)
inline

Definition at line 44 of file conf-file-processor.cpp.

Member Function Documentation

template<class T>
bool nlsr::ConfigurationVariable< T >::parseFromConfigSection ( const ConfigSection section)
inline

Definition at line 55 of file conf-file-processor.cpp.

Here is the caller graph for this function:

template<class T>
void nlsr::ConfigurationVariable< T >::setMinAndMaxValue ( min,
max 
)
inline

Definition at line 84 of file conf-file-processor.cpp.

Here is the caller graph for this function:

template<class T>
void nlsr::ConfigurationVariable< T >::setOptional ( defaultValue)
inline

Definition at line 92 of file conf-file-processor.cpp.

Here is the caller graph for this function: