Public Member Functions | Private Attributes
icl_core::config::ConfigList< T, OutputIterator > Class Template Reference

#include <ConfigList.h>

Inheritance diagram for icl_core::config::ConfigList< T, OutputIterator >:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

template<typename T, class OutputIterator = std::back_insert_iterator<std::list<T> >>
class icl_core::config::ConfigList< T, OutputIterator >

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.


Constructor & Destructor Documentation

template<typename T , class OutputIterator = std::back_insert_iterator<std::list<T> >>
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.

template<typename T , class OutputIterator = std::back_insert_iterator<std::list<T> >>
virtual icl_core::config::ConfigList< T, OutputIterator >::~ConfigList ( ) [inline, virtual]

Definition at line 67 of file ConfigList.h.


Member Function Documentation

template<typename T , class OutputIterator = std::back_insert_iterator<std::list<T> >>
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.

template<typename T , class OutputIterator = std::back_insert_iterator<std::list<T> >>
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.

template<typename T , class OutputIterator = std::back_insert_iterator<std::list<T> >>
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.


Member Data Documentation

template<typename T , class OutputIterator = std::back_insert_iterator<std::list<T> >>
std::string icl_core::config::ConfigList< T, OutputIterator >::m_config_prefix [private]

Definition at line 136 of file ConfigList.h.

template<typename T , class OutputIterator = std::back_insert_iterator<std::list<T> >>
std::map<std::string, T> icl_core::config::ConfigList< T, OutputIterator >::m_element_map [mutable, private]

Definition at line 138 of file ConfigList.h.

template<typename T , class OutputIterator = std::back_insert_iterator<std::list<T> >>
std::list<impl::MemberValueIface<T>*> icl_core::config::ConfigList< T, OutputIterator >::m_members [private]

Definition at line 137 of file ConfigList.h.

template<typename T , class OutputIterator = std::back_insert_iterator<std::list<T> >>
OutputIterator icl_core::config::ConfigList< T, OutputIterator >::m_result [mutable, private]

Definition at line 140 of file ConfigList.h.

template<typename T , class OutputIterator = std::back_insert_iterator<std::list<T> >>
std::string icl_core::config::ConfigList< T, OutputIterator >::m_string_value [mutable, private]

Definition at line 141 of file ConfigList.h.

template<typename T , class OutputIterator = std::back_insert_iterator<std::list<T> >>
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.


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


fzi_icl_core
Author(s):
autogenerated on Tue Aug 8 2017 02:28:05