Config parser class for reading input parameter/settings. More...
#include "config_parser.h"
Collaboration diagram for ConfigParser:
Public Member Functions | |
| ConfigParser () | |
| ConfigParser (const std::string &file) | |
| std::list< ConfigParser > | getObjList (const std::string &key) |
| ConfigParser | getObj (const std::string &key) |
| template<typename T > | |
| T | getVal (const std::string &key) |
| template<typename T > | |
| std::list< T > | getList (const std::string &key) |
Private Member Functions | |
| ConfigParser (const boost::property_tree::ptree &subtree) | |
Private Attributes | |
| boost::property_tree::ptree | tree |
| boost property tree instance More... | |
Config parser class for reading input parameter/settings.
A config parser class able to read different input file formats. Currently supported formats are:
.info.json Definition at line 43 of file config_parser.h.
| ConfigParser::ConfigParser | ( | ) |
Default constructor.
Definition at line 3 of file config_parser.cpp.
| ConfigParser::ConfigParser | ( | const std::string & | file | ) |
|
private |
| subtree |
Definition at line 22 of file config_parser.cpp.
| std::list< T > ConfigParser::getList | ( | const std::string & | key | ) |
| ConfigParser ConfigParser::getObj | ( | const std::string & | key | ) |
| key |
Definition at line 24 of file config_parser.cpp.
Here is the call graph for this function:
| std::list< ConfigParser > ConfigParser::getObjList | ( | const std::string & | key | ) |
| key |
Definition at line 28 of file config_parser.cpp.
Here is the call graph for this function:
| T ConfigParser::getVal | ( | const std::string & | key | ) |
|
private |
boost property tree instance
Definition at line 99 of file config_parser.h.