25 if (config_control->contains(
"config-databases")) {
27 auto elem = config_control->get(
"config-databases");
30 << elem->getPosition() <<
")");
33 const std::vector<data::ElementPtr>& db_list = elem->listValue();
34 for (
auto db = db_list.cbegin(); db != db_list.end(); ++db) {
36 std::string access_string;
37 parser.
parse(access_string, *db);
41 ctl_info->addConfigDatabase(access_string);
47 }
catch (
const std::exception& ex) {
49 << config_control->getPosition() <<
")");
Parse Database Parameters.
Embodies configuration information used during a server's configuration process.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
An exception that is thrown if an error occurs while configuring any server.
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
boost::shared_ptr< const Element > ConstElementPtr
Defines the logger used by the top-level component of kea-dhcp-ddns.
boost::shared_ptr< ConfigControlInfo > ConfigControlInfoPtr
Defines a pointer to a ConfigControlInfo.
void parse(std::string &access_string, isc::data::ConstElementPtr database_config)
Parse configuration value.