nlsr::ConfigurationVariable< T > Class Template Reference

Public Types

typedef std::function< void(T)> ConfParameterCallback
 

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 36 of file conf-file-processor.cpp.

Member Typedef Documentation

◆ ConfParameterCallback

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

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

Constructor & Destructor Documentation

◆ ConfigurationVariable()

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

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

Member Function Documentation

◆ parseFromConfigSection()

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

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

+ Here is the caller graph for this function:

◆ setMinAndMaxValue()

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

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

+ Here is the caller graph for this function:

◆ setOptional()

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

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

+ Here is the caller graph for this function: