#include <ConfigList.h>
Public Member Functions | |
ConfigList (std::string config_prefix, std::list< impl::MemberValueIface< T > * > members, OutputIterator result) | |
virtual 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 | ~ConfigList () |
Private Attributes | |
std::string | m_config_prefix |
std::map< std::string, T > | m_element_map |
std::list < impl::MemberValueIface< T > * > | m_members |
OutputIterator | m_result |
std::string | m_string_value |
std::map< std::string, std::string > | m_string_value_map |
Reads a list of equally structured configuration entries.
The target can be either a list of single values or a list containing structs.
The output iterator is pre-configured to append to a std::list<T>. If you want it to write to a different container or use a pre-allocated container you have to specify the OutputIterator template parameter.
Definition at line 56 of file ConfigList.h.
icl_core::config::ConfigList< T, OutputIterator >::ConfigList | ( | std::string | config_prefix, |
std::list< impl::MemberValueIface< T > * > | members, | ||
OutputIterator | result | ||
) | [inline] |
Definition at line 59 of file ConfigList.h.
virtual icl_core::config::ConfigList< T, OutputIterator >::~ConfigList | ( | ) | [inline, virtual] |
Definition at line 67 of file ConfigList.h.
virtual bool icl_core::config::ConfigList< T, OutputIterator >::get | ( | std::string const & | prefix, |
icl_core::logging::LogStream & | log_stream | ||
) | const [inline, virtual] |
Implements icl_core::config::impl::ConfigValueIface.
Definition at line 69 of file ConfigList.h.
virtual icl_core::String icl_core::config::ConfigList< T, OutputIterator >::key | ( | ) | const [inline, virtual] |
Implements icl_core::config::impl::ConfigValueIface.
Definition at line 132 of file ConfigList.h.
virtual icl_core::String icl_core::config::ConfigList< T, OutputIterator >::stringValue | ( | ) | const [inline, virtual] |
Implements icl_core::config::impl::ConfigValueIface.
Definition at line 133 of file ConfigList.h.
std::string icl_core::config::ConfigList< T, OutputIterator >::m_config_prefix [private] |
Definition at line 136 of file ConfigList.h.
std::map<std::string, T> icl_core::config::ConfigList< T, OutputIterator >::m_element_map [mutable, private] |
Definition at line 138 of file ConfigList.h.
std::list<impl::MemberValueIface<T>*> icl_core::config::ConfigList< T, OutputIterator >::m_members [private] |
Definition at line 137 of file ConfigList.h.
OutputIterator icl_core::config::ConfigList< T, OutputIterator >::m_result [mutable, private] |
Definition at line 140 of file ConfigList.h.
std::string icl_core::config::ConfigList< T, OutputIterator >::m_string_value [mutable, private] |
Definition at line 141 of file ConfigList.h.
std::map<std::string, std::string> icl_core::config::ConfigList< T, OutputIterator >::m_string_value_map [mutable, private] |
Definition at line 139 of file ConfigList.h.