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

#include <ConfigList.h>

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

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 ()
 
- Public Member Functions inherited from icl_core::config::impl::ConfigValueIface
virtual ~ConfigValueIface ()
 

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

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
inlinevirtual

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
inlinevirtual

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
inlinevirtual

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
mutableprivate

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
mutableprivate

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
mutableprivate

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
mutableprivate

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 Mon Jun 10 2019 13:17:59