|
Util--
1.1
|
#include <utilmm/configfile/configfile.hh>


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_set * | parent () const |
| config_set * | parent () |
| std::list< const config_set * > | children (const std::string &name) const |
| config_set const & | child (std::string const &name) const |
| template<typename T > | |
| 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 > | |
| 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_set * | m_parent |
| ValueMap | m_values |
| ChildMap | m_children |
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)
| utilmm::config_file::config_file | ( | const std::string & | name | ) |
Read a configuration file
| parse_error |
1.8.6