7#ifndef CFG_OPTION_DEF_H
8#define CFG_OPTION_DEF_H
103 const uint16_t option_code)
const;
113 const std::string& option_name)
const;
128 uint64_t
del(
const uint64_t
id);
132 return (option_definitions_);
Represents option definitions used by the DHCP server.
void add(const OptionDefinitionPtr &def)
Add new option definition.
bool operator!=(const CfgOptionDef &other) const
Inequality operator.
virtual isc::data::ElementPtr toElement() const
Unparse a configuration object.
isc::data::ElementPtr toElementWithMetadata(const bool include_metadata) const
Unparse a configuration object with optionally including the metadata.
uint64_t del(const uint64_t id)
Deletes all option definitions having a given database id.
const OptionDefSpaceContainer & getContainer() const
Returns reference to container holding option definitions.
OptionDefContainerPtr getAll(const std::string &option_space) const
Return option definitions for particular option space.
bool equals(const CfgOptionDef &other) const
Check if configuration is equal to other configuration.
void merge(CfgOptionDef &other)
Merges specified option definitions from a configuration into this configuration.
OptionDefinitionPtr get(const std::string &option_space, const uint16_t option_code) const
Return option definition for a particular option space and code.
bool operator==(const CfgOptionDef &other) const
Equality operator.
void copyTo(CfgOptionDef &new_config) const
Copies this configuration to a new configuration.
Class of option definition space container.
boost::shared_ptr< Element > ElementPtr
boost::shared_ptr< const CfgOptionDef > ConstCfgOptionDefPtr
Const pointer.
boost::shared_ptr< CfgOptionDef > CfgOptionDefPtr
Non-const pointer.
boost::shared_ptr< OptionDefinition > OptionDefinitionPtr
Pointer to option definition object.
boost::shared_ptr< OptionDefContainer > OptionDefContainerPtr
Pointer to an option definition container.
Defines the logger used by the top-level component of kea-lfc.
Abstract class for configuration Cfg_* classes.