Loading...
Searching...
No Matches
bitpit::GlobalConfigParser Class Reference
Global configuration file parser. More...
Inheritance diagram for bitpit::GlobalConfigParser:

Collaboration diagram for bitpit::GlobalConfigParser:

Static Public Member Functions | |
| static GlobalConfigParser & | parser () |
Additional Inherited Members | |
Public Types inherited from bitpit::Config | |
| typedef std::vector< const Section * > | ConstMultiSection |
| typedef std::vector< Section * > | MultiSection |
| typedef std::map< std::string, std::string > | Options |
| typedef Config | Section |
| typedef std::multimap< std::string, std::unique_ptr< Config > > | Sections |
Public Member Functions inherited from bitpit::ConfigParser | |
| ConfigParser (const std::string &rootName) | |
| ConfigParser (const std::string &rootName, bool multiSections) | |
| ConfigParser (const std::string &rootName, int version) | |
| ConfigParser (const std::string &rootName, int version, bool multiSections) | |
| void | read (config::SourceFormat format, const std::string &content, bool append=true) |
| void | read (const std::string &filename, bool append=true) |
| void | reset (const std::string &rootName) |
| void | reset (const std::string &rootName, int version) |
| void | reset (const std::string &rootName, int version, bool multiSections) |
| void | write (config::SourceFormat format, std::string *content) const |
| void | write (const std::string &filename) const |
Public Member Functions inherited from bitpit::Config | |
| Config (bool multiSections=false) | |
| Config (Config &&other)=default | |
| Config (const Config &other) | |
| Section & | addSection (const std::string &key) |
| void | clear () |
| void | dump (std::ostream &out, int indentLevel=0) const |
| const std::string & | get (const std::string &key) const |
| template<typename T> | |
| T | get (const std::string &key) const |
| std::string | get (const std::string &key, const std::string &fallback) const |
| template<typename T> | |
| T | get (const std::string &key, const T &fallback) const |
| int | getOptionCount () const |
| Options & | getOptions () |
| const Options & | getOptions () const |
| Section & | getSection (const std::string &key) |
| const Section & | getSection (const std::string &key) const |
| int | getSectionCount () const |
| int | getSectionCount (const std::string &key) const |
| Sections & | getSections () |
| const Sections & | getSections () const |
| MultiSection | getSections (const std::string &key) |
| ConstMultiSection | getSections (const std::string &key) const |
| bool | hasOption (const std::string &key) const |
| bool | hasSection (const std::string &key) const |
| bool | isMultiSectionsEnabled () const |
| Config & | operator= (Config &&other)=default |
| Config & | operator= (Config other) |
| Section & | operator[] (const std::string &key) |
| const Section & | operator[] (const std::string &key) const |
| bool | removeOption (const std::string &key) |
| bool | removeSection (const std::string &key) |
| void | set (const std::string &key, const std::string &value) |
| template<typename T> | |
| void | set (const std::string &key, const T &value) |
| void | swap (Config &other) |
Protected Attributes inherited from bitpit::Config | |
| bool | m_multiSections |
Detailed Description
Global configuration file parser.
This class implements a global configuration file parser.
Definition at line 67 of file configuration.hpp.
Member Function Documentation
◆ parser()
|
static |
Returns a global configuration with default options.
- Returns
- The global instance of the configuration file parser.
Definition at line 338 of file configuration.cpp.
The documentation for this class was generated from the following files:
- src/IO/configuration.hpp
- src/IO/configuration.cpp
1.13.2
Public Types inherited from