#include <cfg_libconfig.h>
Public Member Functions | |
LibConfig (const string &) | |
~LibConfig (void) | |
void | load_entry (const string &) |
Load/cache a group for the relevant entry from the libconfig file. | |
Private Attributes | |
libconfig::Config | config |
C++ object defined by the libconfig library. | |
pthread_mutex_t | mutex |
Mutex to protect the libconfig object. |
This configuration file format is intended to be read by the libconfig library for C/C++. Libconfig is an open-source code base marketed as being small and simple to use, and the file format smaller and much simpler than XML, in addition to being type-aware allowing applications to not have to parse strings. More information on libconfig can be found at http://www.hyperrealm.com/libconfig/
Definition at line 66 of file cfg_libconfig.h.
LibConfig::LibConfig | ( | const string & | filename | ) |
Definition at line 54 of file cfg_libconfig.cc.
References config, mutex, and PTHREAD_CHECK_AND_THROW.
LibConfig::~LibConfig | ( | void | ) |
void LibConfig::load_entry | ( | const string & | name | ) | [virtual] |
Load/cache a group for the relevant entry from the libconfig file.
Implements Config.
Definition at line 108 of file cfg_libconfig.cc.
References config, Config::config_keys, mutex, and PTHREAD_CHECK_AND_THROW.
libconfig::Config LibConfig::config [private] |
C++ object defined by the libconfig library.
Definition at line 76 of file cfg_libconfig.h.
Referenced by LibConfig(), and load_entry().
pthread_mutex_t LibConfig::mutex [private] |
Mutex to protect the libconfig object.
Definition at line 78 of file cfg_libconfig.h.
Referenced by LibConfig(), load_entry(), and ~LibConfig().