Util--  1.1
Public Member Functions | List of all members
utilmm::config_file Class Reference

#include <utilmm/configfile/configfile.hh>

Inheritance diagram for utilmm::config_file:
Inheritance graph
[legend]
Collaboration diagram for utilmm::config_file:
Collaboration graph
[legend]

Public Member Functions

 config_file (const std::string &name)
 
- Public Member Functions inherited from utilmm::config_set
 config_set (config_set *parent=0)
 
 ~config_set ()
 
bool empty () const
 
bool exists (const std::string &attribute) const
 
const config_setparent () const
 
config_setparent ()
 
std::list< const config_set * > children (const std::string &name) const
 
config_set const & child (std::string const &name) const
 
template<typename T >
get (std::string const &name, T const &defval=T(), typename boost::enable_if< details::is_list< T > >::type *enabler=0) const
 
template<typename T >
get (std::string const &name, T const &defval=T(), typename boost::disable_if< details::is_list< T > >::type *enabler=0) const
 
void set (std::string const &name, std::string const &value)
 
void set (std::string const &name, std::list< std::string > const &value)
 
void insert (std::string const &name, std::string const &value)
 
void insert (std::string const &name, std::list< std::string > const &value)
 
void insert (std::string const &name, config_set const *value)
 
void erase (std::string const &name)
 
template<>
bool convert (std::string const &value)
 
template<>
config_set::stringlist get (std::string const &name, config_set::stringlist const &defval, boost::enable_if< details::is_list< config_set::stringlist > >::type *enabler) const
 

Additional Inherited Members

- Public Types inherited from utilmm::config_set
typedef std::list< const config_set * > subsets
 
- Protected Types inherited from utilmm::config_set
typedef std::multimap< std::string, std::string > ValueMap
 
typedef std::multimap< std::string, const config_set * > ChildMap
 
- Protected Member Functions inherited from utilmm::config_set
void clear ()
 
- Protected Attributes inherited from utilmm::config_set
config_setm_parent
 
ValueMap m_values
 
ChildMap m_children
 

Detailed Description

A configuration file Reads a configuration file using read. Once it has been read, this object is to be used as a top-level scope (ConfigSet)

Constructor & Destructor Documentation

◆ config_file()

utilmm::config_file::config_file ( const std::string &  name)

Read a configuration file


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

Generated on Wed Oct 17 2018 09:34:19 for Util-- by doxygen 1.8.13
SourceForge.net Project Page