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