LibConfig Class Reference
[Configuration-related objects]

A configuration system based on the libconfig library. More...

#include <cfg_libconfig.h>

Inheritance diagram for LibConfig:

Inheritance graph
[legend]
Collaboration diagram for LibConfig:

Collaboration graph
[legend]

List of all members.

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.


Detailed Description

A configuration system based on the libconfig library.

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/

See also:
ConfigFactory

Definition at line 66 of file cfg_libconfig.h.


Constructor & Destructor Documentation

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   ) 

Definition at line 93 of file cfg_libconfig.cc.

References mutex, and PTHREAD_CHECK_AND_THROW.


Member Function Documentation

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.


Member Data Documentation

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().


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

Generated on Tue May 13 11:32:47 2008 for consmgr by  doxygen 1.5.5