Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
bitpit::GlobalConfigParser Class Reference

Global configuration file parser. More...

Inheritance diagram for bitpit::GlobalConfigParser:
Inheritance graph
[legend]
Collaboration diagram for bitpit::GlobalConfigParser:
Collaboration graph
[legend]

Static Public Member Functions

static GlobalConfigParserparser ()
 

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)
 
SectionaddSection (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 >
get (const std::string &key) const
 
std::string get (const std::string &key, const std::string &fallback) const
 
template<typename T >
get (const std::string &key, const T &fallback) const
 
int getOptionCount () const
 
Options & getOptions ()
 
const Options & getOptions () const
 
SectiongetSection (const std::string &key)
 
const SectiongetSection (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
 
Configoperator= (Config &&other)=default
 
Configoperator= (Config other)
 
Sectionoperator[] (const std::string &key)
 
const Sectionoperator[] (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()

GlobalConfigParser & bitpit::GlobalConfigParser::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:
--- layout: doxygen_footer ---