![]() |
Kea
1.5.0
|
Embodies configuration information used during a server's configuration process. More...
#include <config_ctl_info.h>
Inheritance diagram for isc::process::ConfigControlInfo:Public Member Functions | |
| ConfigControlInfo () | |
| Constructor. More... | |
| ConfigControlInfo (const ConfigControlInfo &other) | |
| Copy Constructor. More... | |
| void | addConfigDatabase (const std::string &access_str) |
| Sets configuration database access string. More... | |
| void | clear () |
| Empties the contents of the class, including the database list. More... | |
| bool | equals (const ConfigControlInfo &other) const |
| Compares two objects for equality. More... | |
| const ConfigDbInfo & | findConfigDb (const std::string ¶m_name, const std::string ¶m_value) |
| Retrieves the datbase with the given access parameter value. More... | |
| const ConfigDbInfoList & | getConfigDatabases () const |
| Retrieves the list of databases. More... | |
| virtual isc::data::ElementPtr | toElement () const |
| Unparse a configuration object. More... | |
Public Member Functions inherited from isc::data::CfgToElement | |
| virtual | ~CfgToElement () |
| Destructor. More... | |
Static Public Member Functions | |
| static const ConfigDbInfo & | EMPTY_DB () |
| Fetches the not-found value returned by database list searches. More... | |
Embodies configuration information used during a server's configuration process.
This is class conveys the configuration control information described by the following JSON text:
Definition at line 138 of file config_ctl_info.h.
|
inline |
Constructor.
Definition at line 142 of file config_ctl_info.h.
| isc::process::ConfigControlInfo::ConfigControlInfo | ( | const ConfigControlInfo & | other | ) |
Copy Constructor.
Definition at line 45 of file config_ctl_info.cc.
| void isc::process::ConfigControlInfo::addConfigDatabase | ( | const std::string & | access_str | ) |
Sets configuration database access string.
| access_str | database access string. |
| BadValue | if an entry exists that matches the parameters in the given access string, or if the access string is invalid. |
Definition at line 52 of file config_ctl_info.cc.
References isc_throw, and isc::process::ConfigDbInfo::setAccessString().
Here is the call graph for this function:| void isc::process::ConfigControlInfo::clear | ( | ) |
Empties the contents of the class, including the database list.
Definition at line 89 of file config_ctl_info.cc.
|
static |
Fetches the not-found value returned by database list searches.
Definition at line 83 of file config_ctl_info.cc.
| bool isc::process::ConfigControlInfo::equals | ( | const ConfigControlInfo & | other | ) | const |
Compares two objects for equality.
| other | An object to be compared with this object. |
Definition at line 106 of file config_ctl_info.cc.
| const ConfigDbInfo & isc::process::ConfigControlInfo::findConfigDb | ( | const std::string & | param_name, |
| const std::string & | param_value | ||
| ) |
Retrieves the datbase with the given access parameter value.
EMPTY_DB() Definition at line 68 of file config_ctl_info.cc.
|
inline |
Retrieves the list of databases.
The entries in the list are stored in the order they were added to it (FIFO).
Definition at line 161 of file config_ctl_info.h.
|
virtual |
Unparse a configuration object.
Implements isc::data::CfgToElement.
Definition at line 94 of file config_ctl_info.cc.
References isc::data::Element::createList(), and isc::data::Element::createMap().
Here is the call graph for this function: