libmoost
moost::configurable::configurable Class Reference

Anything that inherits from this type guarantees it can have configurations stored/retrieved/listed. More...

#include <configurable.h>

Inheritance diagram for moost::configurable::configurable:
Collaboration diagram for moost::configurable::configurable:

List of all members.

Public Member Functions

virtual void set (const std::string &key, const std::string &value)=0
 set one key/value pair
virtual void get (const std::string &key, std::string &value) const =0
 get one key/value pair
virtual void list (std::vector< std::pair< std::string, std::string > > &items)=0
 get all key/value pairs
virtual ~configurable ()
 dtor

Static Public Attributes

static const int DEFAULT_INDENT = 2
 default indentation for pretty-printing configurations

Detailed Description

Anything that inherits from this type guarantees it can have configurations stored/retrieved/listed.

Definition at line 40 of file configurable.h.


Constructor & Destructor Documentation

virtual moost::configurable::configurable::~configurable ( ) [inline, virtual]

dtor

Definition at line 50 of file configurable.h.


Member Function Documentation

virtual void moost::configurable::configurable::get ( const std::string &  key,
std::string &  value 
) const [pure virtual]

get one key/value pair

Implemented in moost::configurable::indexed_binder< T >, moost::configurable::indexed_binder< AddressConfigurable >, and moost::configurable::binder.

Here is the caller graph for this function:

virtual void moost::configurable::configurable::list ( std::vector< std::pair< std::string, std::string > > &  items) [pure virtual]

get all key/value pairs

Implemented in moost::configurable::binder, moost::configurable::indexed_binder< T >, and moost::configurable::indexed_binder< AddressConfigurable >.

Here is the caller graph for this function:

virtual void moost::configurable::configurable::set ( const std::string &  key,
const std::string &  value 
) [pure virtual]

set one key/value pair

Implemented in moost::configurable::indexed_binder< T >, moost::configurable::indexed_binder< AddressConfigurable >, and moost::configurable::binder.

Here is the caller graph for this function:


Member Data Documentation

default indentation for pretty-printing configurations

Definition at line 52 of file configurable.h.


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