zz::cfg::CfgParser Class Reference

The CfgParser class for INI/CFG file parsing. More...

#include <zupply.hpp>

Public Member Functions

 CfgParser (std::string filename)
 CfgParser constructor from filename. More...
 
 CfgParser (std::istream &s)
 CfgParser constructor from stream. More...
 
CfgLevelroot ()
 Get root section of configuration. More...
 
Value operator[] (const std::string &name)
 Overloaded operator [] for config values. More...
 
CfgLeveloperator() (const std::string &name)
 Overloaded operator () for config sections. More...
 

Detailed Description

The CfgParser class for INI/CFG file parsing.

Constructor & Destructor Documentation

zz::cfg::CfgParser::CfgParser ( std::string  filename)

CfgParser constructor from filename.

Parameters
filename
zz::cfg::CfgParser::CfgParser ( std::istream &  s)
inline

CfgParser constructor from stream.

Parameters
s

Member Function Documentation

CfgLevel& zz::cfg::CfgParser::operator() ( const std::string &  name)
inline

Overloaded operator () for config sections.

Parameters
nameSection entry.
Returns
Section from given name.
Value zz::cfg::CfgParser::operator[] ( const std::string &  name)
inline

Overloaded operator [] for config values.

Parameters
nameConfig value entry
Returns
Value
CfgLevel& zz::cfg::CfgParser::root ( )
inline

Get root section of configuration.

Returns
Root level of config file

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