libmoost
|
Anything that inherits from this type guarantees it can have configurations stored/retrieved/listed. More...
#include <configurable.h>
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 |
Anything that inherits from this type guarantees it can have configurations stored/retrieved/listed.
Definition at line 40 of file configurable.h.
virtual moost::configurable::configurable::~configurable | ( | ) | [inline, virtual] |
dtor
Definition at line 50 of file configurable.h.
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.
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 >.
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.
const int moost::configurable::configurable::DEFAULT_INDENT = 2 [static] |
default indentation for pretty-printing configurations
Definition at line 52 of file configurable.h.