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

#include <ConfigValue.h>

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

List of all members.

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 ()

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 ( ) [inline, virtual]

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 [inline, virtual]

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 [inline, virtual]
template<typename T >
virtual icl_core::String icl_core::config::ConfigValue< T >::key ( ) const [inline, virtual]

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 [inline, virtual]

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 [mutable, protected]

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 Thu Jun 6 2019 20:22:26