Kea
1.9.9-git
|
Storage container for scalar configuration parameters. More...
#include <d2_config.h>
Public Member Functions | |
DScalarContext () | |
Constructor. More... | |
virtual | ~DScalarContext () |
Destructor. More... | |
virtual process::ConfigPtr | clone () |
Creates a clone of a DStubContext. More... | |
virtual isc::data::ElementPtr | toElement () const |
Unparse a configuration object. More... | |
Public Member Functions inherited from isc::process::ConfigBase | |
const process::LoggingInfoStorage & | getLoggingInfo () const |
Returns logging specific configuration. More... | |
void | addLoggingInfo (const process::LoggingInfo &logging_info) |
Sets logging specific configuration. More... | |
void | applyLoggingCfg () const |
Apply logging configuration to log4cplus. More... | |
bool | equals (const ConfigBase &other) const |
Compares two configuration. More... | |
virtual void | merge (ConfigBase &other) |
Merges specified configuration into this configuration. More... | |
process::ConstConfigControlInfoPtr | getConfigControlInfo () const |
Fetches a read-only copy of the configuration control information. More... | |
void | setConfigControlInfo (const process::ConfigControlInfoPtr &config_ctl_info) |
Set the configuration control information. More... | |
void | setServerTag (const util::Optional< std::string > &server_tag) |
Sets the server's logical name. More... | |
util::Optional< std::string > | getServerTag () const |
Returns the server's logical name. More... | |
boost::posix_time::ptime | getLastCommitTime () const |
Returns the last commit timestamp. More... | |
void | setLastCommitTime (const boost::posix_time::ptime &last_commit_time) |
Sets the last commit timestamp. More... | |
Public Member Functions inherited from isc::data::UserContext | |
void | contextToElement (data::ElementPtr map) const |
Merge unparse a user_context object. More... | |
data::ConstElementPtr | getContext () const |
Returns const pointer to the user context. More... | |
void | setContext (const data::ConstElementPtr &ctx) |
Sets user context. More... | |
Public Member Functions inherited from isc::data::CfgToElement | |
virtual | ~CfgToElement () |
Destructor. More... | |
Protected Member Functions | |
DScalarContext (const DScalarContext &rhs) | |
Copy constructor. More... | |
Protected Member Functions inherited from isc::process::ConfigBase | |
void | copy (ConfigBase &new_config) const |
Copies the current configuration to a new configuration. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from isc::data::UserContext | |
static data::ElementPtr | toElement (data::ConstElementPtr map) |
Copy an Element map. More... | |
Protected Attributes inherited from isc::data::UserContext | |
data::ConstElementPtr | user_context_ |
Pointer to the user context (may be NULL) More... | |
Storage container for scalar configuration parameters.
This class is useful for implementing parsers for more complex configuration elements (e.g. those of item type "map"). It provides a convenient way to add storage to the parser for an arbitrary number and variety of scalar configuration items (e.g. ints, bools, strings...) without explicitly adding storage for each individual type needed by the parser.
This class implements a concrete version of the base class by supplying a "clone" method.
Definition at line 709 of file d2_config.h.
|
inline |
|
inlinevirtual |
Destructor.
Definition at line 717 of file d2_config.h.
|
inlineprotected |
Copy constructor.
Definition at line 736 of file d2_config.h.
|
inlinevirtual |
Creates a clone of a DStubContext.
Definition at line 723 of file d2_config.h.
References DScalarContext().
|
inlinevirtual |
Unparse a configuration object.
Reimplemented from isc::process::ConfigBase.
Definition at line 730 of file d2_config.h.
References isc_throw.