Public Member Functions | Protected Attributes | List of all members
icl_core::config::ConfigValue< T > Class Template Reference

#include <ConfigValue.h>

Inheritance diagram for icl_core::config::ConfigValue< T >:
Inheritance graph
[legend]

Public Member Functions

 ConfigValue (const icl_core::String &key, typename icl_core::ConvertToRef< T >::ToRef value)
 
virtual bool get (std::string const &prefix, icl_core::logging::LogStream &log_stream) const
 
template<>
bool get (std::string const &prefix, icl_core::logging::LogStream &log_stream) const
 
virtual icl_core::String key () const
 
virtual icl_core::String stringValue () const
 
virtual ~ConfigValue ()
 
- Public Member Functions inherited from icl_core::config::impl::ConfigValueIface
virtual ~ConfigValueIface ()
 

Protected Attributes

icl_core::String m_key
 
icl_core::String m_str_value
 
icl_core::ConvertToRef< T >::ToRef m_value
 

Detailed Description

template<typename T>
class icl_core::config::ConfigValue< T >

Typed "container" class for batch reading of configuration parameters.

Definition at line 50 of file ConfigValue.h.

Constructor & Destructor Documentation

template<typename T >
icl_core::config::ConfigValue< T >::ConfigValue ( const icl_core::String key,
typename icl_core::ConvertToRef< T >::ToRef  value 
)
inline

Create a placeholder for later batch reading of configuration parameters.

Definition at line 56 of file ConfigValue.h.

template<typename T >
virtual icl_core::config::ConfigValue< T >::~ConfigValue ( )
inlinevirtual

We need a virtual destructor!

Definition at line 64 of file ConfigValue.h.

Member Function Documentation

template<typename T >
virtual bool icl_core::config::ConfigValue< T >::get ( std::string const &  prefix,
icl_core::logging::LogStream log_stream 
) const
inlinevirtual

Actually read the configuration parameter.

Implements icl_core::config::impl::ConfigValueIface.

Reimplemented in icl_core::config::ConfigValueDefault< T >.

Definition at line 68 of file ConfigValue.h.

template<>
bool icl_core::config::ConfigValue< bool >::get ( std::string const &  prefix,
icl_core::logging::LogStream log_stream 
) const
inlinevirtual

Implements icl_core::config::impl::ConfigValueIface.

Definition at line 110 of file ConfigValue.h.

template<typename T >
virtual icl_core::String icl_core::config::ConfigValue< T >::key ( ) const
inlinevirtual

Return the configuration key.

Implements icl_core::config::impl::ConfigValueIface.

Definition at line 90 of file ConfigValue.h.

template<typename T >
virtual icl_core::String icl_core::config::ConfigValue< T >::stringValue ( ) const
inlinevirtual

Return the value as string.

Implements icl_core::config::impl::ConfigValueIface.

Definition at line 97 of file ConfigValue.h.

Member Data Documentation

template<typename T >
icl_core::String icl_core::config::ConfigValue< T >::m_key
protected

Definition at line 103 of file ConfigValue.h.

template<typename T >
icl_core::String icl_core::config::ConfigValue< T >::m_str_value
mutableprotected

Definition at line 104 of file ConfigValue.h.

template<typename T >
icl_core::ConvertToRef<T>::ToRef icl_core::config::ConfigValue< T >::m_value
protected

Definition at line 105 of file ConfigValue.h.


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


fzi_icl_core
Author(s):
autogenerated on Mon Jun 10 2019 13:17:59