7 #ifndef BACKEND_SELECTOR_H
8 #define BACKEND_SELECTOR_H
88 explicit BackendSelector(
const std::string& host,
const uint16_t port = 0);
150 return (backend_type_);
173 std::string
toText()
const;
200 void validate()
const;
static const BackendSelector & UNSPEC()
Returns instance of the "unspecified" backend selector.
static Type stringToBackendType(const std::string &type)
Converts string to backend type.
static std::string backendTypeToString(const Type &type)
Converts backend type to string.
bool amUnspecified() const
Checks if selector is "unspecified".
boost::shared_ptr< Element > ElementPtr
std::string toText() const
Returns selections as text.
Abstract class for configuration Cfg_* classes.
boost::shared_ptr< const Element > ConstElementPtr
uint16_t getBackendPort() const
Returns port selected.
BackendSelector()
Default constructor.
Defines the logger used by the top-level component of kea-dhcp-ddns.
Type
Supported database types.
Type getBackendType() const
Returns backend type selected.
virtual data::ElementPtr toElement() const
Unparse a backend selector object.
std::string getBackendHost() const
Returns host selected.