11 #include <boost/make_shared.hpp>
22 if (description_.length() > 65536) {
30 return (boost::make_shared<Server>(tag, description));
std::string getServerTagAsText() const
Returns server tag as text.
boost::shared_ptr< Server > ServerPtr
Shared pointer to the Server class.
boost::shared_ptr< Element > ElementPtr
Server(const data::ServerTag &tag, const std::string &description)
Constructor.
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
A generic exception that is thrown if a parameter given to a method is considered invalid in that con...
std::string getDescription() const
Returns the description of the server.
Defines the logger used by the top-level component of kea-dhcp-ddns.
static ServerPtr create(const data::ServerTag &tag, const std::string &description="")
Factory function to be used to create an instance of the Server object.
This class represents configuration element which is associated with database identifier and the modi...
virtual data::ElementPtr toElement() const
Unparses server object.