Kea 2.2.0
isc::dhcp::CfgHostDbAccess Struct Reference

#include <cfg_db_access.h>

+ Inheritance diagram for isc::dhcp::CfgHostDbAccess:

Public Member Functions

 CfgHostDbAccess (const CfgDbAccess &super)
 Constructor.
 
virtual isc::data::ElementPtr toElement () const
 Unparse.
 
- Public Member Functions inherited from isc::dhcp::CfgDbAccess
 CfgDbAccess ()
 Constructor.
 
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.
 
std::list< std::string > getHostDbAccessStringList () const
 Retrieves host database access string.
 
bool getIPReservationsUnique () const
 Returns the setting indicating if the IP reservations are unique or can be non unique.
 
std::string getLeaseDbAccessString () const
 Retrieves lease database access string.
 
void setAppendedParameters (const std::string &appended_parameters)
 Sets parameters which will be appended to the database access strings.
 
void setHostDbAccessString (const std::string &host_db_access, bool front=false)
 Sets 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 setLeaseDbAccessString (const std::string &lease_db_access)
 Sets lease database access string.
 
- Public Member Functions inherited from isc::data::CfgToElement
virtual ~CfgToElement ()
 Destructor.
 
virtual isc::data::ElementPtr toElement () const =0
 Unparse a configuration object.
 

Additional Inherited Members

- Protected Member Functions inherited from isc::dhcp::CfgDbAccess
std::string getAccessString (const std::string &access_string) const
 Returns lease or host database access string.
 
- Protected Attributes inherited from isc::dhcp::CfgDbAccess
std::string appended_parameters_
 Parameters to be appended to the database access strings.
 
std::list< std::string > host_db_access_
 Holds host database access strings.
 
bool ip_reservations_unique_
 Holds the setting whether IP reservations should be unique or can be non-unique.
 
std::string lease_db_access_
 Holds lease database access string.
 

Detailed Description

Definition at line 150 of file cfg_db_access.h.

Constructor & Destructor Documentation

◆ CfgHostDbAccess()

isc::dhcp::CfgHostDbAccess::CfgHostDbAccess ( const CfgDbAccess super)
inline

Constructor.

Definition at line 152 of file cfg_db_access.h.

Member Function Documentation

◆ toElement()

virtual isc::data::ElementPtr isc::dhcp::CfgHostDbAccess::toElement ( ) const
inlinevirtual

Unparse.

isc::data::CfgToElement::toElement

Returns
a pointer to a configuration

Implements isc::data::CfgToElement.

Definition at line 159 of file cfg_db_access.h.

References isc::data::Element::createList(), isc::dhcp::CfgDbAccess::host_db_access_, and isc::db::DatabaseConnection::toElementDbAccessString().

Referenced by isc::dhcp::SrvConfig::toElement().

+ Here is the call graph for this function:

The documentation for this struct was generated from the following file: