13 #include <boost/shared_ptr.hpp>
79 OptionSpace(
const std::string& name,
const bool vendor_space =
false);
84 const std::string&
getName()
const {
return (name_); }
88 vendor_space_ =
false;
163 OptionSpace6(
const std::string& name,
const uint32_t enterprise_number);
177 uint32_t enterprise_number_;
This is a base class for exceptions thrown from the DNS library module.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
Exception to be thrown when invalid option space is specified.
InvalidOptionSpace(const char *file, size_t line, const char *what)
DHCPv6 option space with enterprise number assigned.
OptionSpace6(const std::string &name)
Constructor for non-vendor-specific options.
uint32_t getEnterpriseNumber() const
Return enterprise number for the option space.
void setVendorSpace()
Mark option space as vendor specific.
bool isVendorSpace() const
Check if option space is vendor specific.
static bool validateName(const std::string &name)
Checks that the provided option space name is valid.
OptionSpace(const std::string &name, const bool vendor_space=false)
Constructor.
const std::string & getName() const
Return option space name.
void clearVendorSpace()
Mark option space as non-vendor space.
boost::shared_ptr< OptionSpace > OptionSpacePtr
A pointer to OptionSpace object.
std::map< std::string, OptionSpacePtr > OptionSpaceCollection
A collection of option spaces.
Defines the logger used by the top-level component of kea-lfc.