13#include <boost/shared_ptr.hpp>
185 if (entry->size() > 0) {
static ElementPtr createList(const Position &pos=ZERO_POSITION())
Creates an empty ListElement type ElementPtr.
static isc::data::ElementPtr toElementDbAccessString(const std::string &dbaccess)
Unparse an access string.
Holds access parameters and the configuration of the lease and hosts database connection.
void setLeaseDbAccessString(const std::string &lease_db_access)
Sets lease database access string.
bool ip_reservations_unique_
Holds the setting whether IP reservations should be unique or can be non-unique.
std::string getAccessString(const std::string &access_string) const
Returns lease or host database access string.
void createManagers() const
Creates instance of lease manager and host data sources according to the configuration specified.
std::string getHostDbAccessString() const
Retrieves host database access string.
bool getIPReservationsUnique() const
Returns the setting indicating if the IP reservations are unique or can be non unique.
bool getExtendedInfoTablesEnabled() const
Returns the setting indicating if lease extended info tables are enabled.
std::list< std::string > host_db_access_
Holds host database access strings.
std::string appended_parameters_
Parameters to be appended to the database access strings.
CfgDbAccess()
Constructor.
bool extended_info_tables_enabled_
Holds the setting whether the lease extended info tables are enabled or disabled.
std::list< std::string > getHostDbAccessStringList() const
Retrieves host database access string.
void setIPReservationsUnique(const bool unique)
Modifies the setting imposing whether the IP reservations are unique or can be non unique.
void setHostDbAccessString(const std::string &host_db_access, bool front=false)
Sets host database access string.
void setAppendedParameters(const std::string &appended_parameters)
Sets parameters which will be appended to the database access strings.
void setExtendedInfoTablesEnabled(const bool enabled)
Modifies the setting whether the lease extended info tables are enabled.
std::string lease_db_access_
Holds lease database access string.
std::string getLeaseDbAccessString() const
Retrieves lease database access string.
boost::shared_ptr< Element > ElementPtr
boost::shared_ptr< CfgDbAccess > CfgDbAccessPtr
A pointer to the CfgDbAccess.
boost::shared_ptr< const CfgDbAccess > ConstCfgDbAccessPtr
A pointer to the const CfgDbAccess.
Defines the logger used by the top-level component of kea-lfc.
Abstract class for configuration Cfg_* classes.
CfgHostDbAccess(const CfgDbAccess &super)
Constructor.
virtual isc::data::ElementPtr toElement() const
Unparse.
utility class for unparsing
virtual isc::data::ElementPtr toElement() const
Unparse.
CfgLeaseDbAccess(const CfgDbAccess &super)
Constructor.