9#include <boost/lexical_cast.hpp>
15 const std::string& value)
24 value_ = boost::lexical_cast<std::string>(value);
33 const std::string& value) {
39 const int64_t value) {
46 if (!value_.empty()) {
48 return (boost::lexical_cast<int64_t>(value_));
51 <<
" to a signed integer");
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 the modification timestamp.
This class represents string or signed integer configuration element associated with the modification...
StampedValue(const std::string &name, const std::string &value)
Constructor.
int64_t getSignedIntegerValue() const
Returns value as signed integer.
static StampedValuePtr create(const std::string &name, const std::string &value)
Convenience function creating shared pointer to the object.
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
boost::shared_ptr< StampedValue > StampedValuePtr
Pointer to the stamped value.
Defines the logger used by the top-level component of kea-dhcp-ddns.