#include <ConfigValue.h>
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 |
Typed "container" class for batch reading of configuration parameters.
Definition at line 50 of file ConfigValue.h.
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.
virtual icl_core::config::ConfigValue< T >::~ConfigValue | ( | ) | [inline, virtual] |
We need a virtual destructor!
Definition at line 64 of file ConfigValue.h.
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.
bool icl_core::config::ConfigValue< bool >::get | ( | std::string const & | prefix, |
icl_core::logging::LogStream & | log_stream | ||
) | const [inline, virtual] |
Implements icl_core::config::impl::ConfigValueIface.
Reimplemented in icl_core::config::ConfigValueDefault< T >.
Definition at line 110 of file ConfigValue.h.
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.
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.
icl_core::String icl_core::config::ConfigValue< T >::m_key [protected] |
Definition at line 103 of file ConfigValue.h.
icl_core::String icl_core::config::ConfigValue< T >::m_str_value [mutable, protected] |
Definition at line 104 of file ConfigValue.h.
icl_core::ConvertToRef<T>::ToRef icl_core::config::ConfigValue< T >::m_value [protected] |
Definition at line 105 of file ConfigValue.h.