11#include <boost/make_shared.hpp>
22 if (description_.length() > 65536) {
23 isc_throw(BadValue,
"server description must not be longer than"
30 return (boost::make_shared<Server>(tag, description));
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.
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.