7 #ifndef PROCESS_CONFIG_CTL_INFO_H 8 #define PROCESS_CONFIG_CTL_INFO_H 13 #include <boost/shared_ptr.hpp> 57 return (access_params_);
69 std::string& value)
const;
103 std::string access_str_;
170 const std::string& param_value);
206 #endif // PROCESS_CONFIG_CTL_INFO_H std::string getAccessString() const
Retrieves the database access string.
void addConfigDatabase(const std::string &access_str)
Sets configuration database access string.
virtual isc::data::ElementPtr toElement() const
Unparse a configuration object.
std::string redactedAccessString() const
Retrieves the database access string with password redacted.
virtual isc::data::ElementPtr toElement() const
Unparse a configuration object.
Embodies configuration information used during a server's configuration process.
boost::shared_ptr< Element > ElementPtr
bool getParameterValue(const std::string &name, std::string &value) const
Fetch the value of a given parmeter.
void setAccessString(const std::string &access_str)
Set the access string.
bool equals(const ConfigDbInfo &other) const
Compares two objects for equality.
ConfigDbInfo()
Constructor.
Abstract class for configuration Cfg_* classes.
void clear()
Empties the contents of the class, including the database list.
bool equals(const ConfigControlInfo &other) const
Compares two objects for equality.
bool operator!=(const ConfigDbInfo &other) const
Compares two objects for inequality.
const db::DatabaseConnection::ParameterMap & getParameters() const
Retrieve the map of parameter values.
Defines the logger used by the top-level component of kea-dhcp-ddns.
bool operator==(const ConfigDbInfo &other) const
Compares two objects for equality.
Provides configuration information used during a server's configuration process.
const ConfigDbInfo & findConfigDb(const std::string ¶m_name, const std::string ¶m_value)
Retrieves the datbase with the given access parameter value.
ConfigControlInfo()
Constructor.
std::map< std::string, std::string > ParameterMap
Database configuration parameter map.
boost::shared_ptr< ConfigControlInfo > ConfigControlInfoPtr
Defines a pointer to a ConfigControlInfo.
const ConfigDbInfoList & getConfigDatabases() const
Retrieves the list of databases.
static std::string redactedAccessString(const ParameterMap ¶meters)
Redact database access string.
static const ConfigDbInfo & EMPTY_DB()
Fetches the not-found value returned by database list searches.
std::vector< ConfigDbInfo > ConfigDbInfoList
boost::shared_ptr< const ConfigControlInfo > ConstConfigControlInfoPtr
Defines a pointer to a const ConfigControlInfo.