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