#include <conf.H>
Public Member Functions | |
conf_t () | |
bool | read (std::string const &filename) |
template<typename T > | |
bool | get (std::string const &name, T &value) const |
template<typename T > | |
bool | require (std::string const &name, T &value) const |
Protected Member Functions | |
bool | find (std::string const &name, cajun::conf_entry_t &entry) const |
bool | remove_quotes (std::string const &in_string, std::string &out_string) const |
void | notify_missing (std::string const &name) const |
void | notify_invalid (std::string const &name) const |
Protected Attributes | |
std::string | m_file_name |
std::map< std::string, conf_entry_t > | m_params |
cajun::conf_t::conf_t | ( | ) |
bool cajun::conf_t::find | ( | std::string const & | name, | |
cajun::conf_entry_t & | entry | |||
) | const [protected] |
bool cajun::conf_t::get | ( | std::string const & | name, | |
T & | value | |||
) | const [inline] |
References conf_value(), and find().
void cajun::conf_t::notify_invalid | ( | std::string const & | name | ) | const [protected] |
References m_file_name.
Referenced by require().
void cajun::conf_t::notify_missing | ( | std::string const & | name | ) | const [protected] |
References m_file_name.
Referenced by require().
bool cajun::conf_t::read | ( | std::string const & | filename | ) |
References m_file_name, and m_params.
bool cajun::conf_t::remove_quotes | ( | std::string const & | in_string, | |
std::string & | out_string | |||
) | const [protected] |
bool cajun::conf_t::require | ( | std::string const & | name, | |
T & | value | |||
) | const [inline] |
References conf_value(), find(), notify_invalid(), and notify_missing().
std::string cajun::conf_t::m_file_name [protected] |
Referenced by notify_invalid(), notify_missing(), and read().
std::map<std::string, conf_entry_t> cajun::conf_t::m_params [protected] |
Referenced by read().