24 typedef std::map<std::string, isc::data::ConstElementPtr>
ElementMap;
143 bool check_only =
false,
144 const std::function<
void()>& post_config_cb =
nullptr);
225 #endif // D_CFG_MGR_H boost::shared_ptr< DCfgMgrBase > DCfgMgrBasePtr
Defines a shared pointer to DCfgMgrBase.
boost::shared_ptr< Element > ElementPtr
std::map< std::string, isc::data::ConstElementPtr > ElementMap
Defines a map of ConstElementPtrs keyed by name.
void setContext(ConfigPtr &context)
Update the current context.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
virtual std::string getConfigSummary(const uint32_t selection)=0
Returns configuration summary in the textual format.
void resetContext()
Replaces existing context with a new, empty context.
Exception thrown if the configuration manager encounters an error.
virtual ConfigPtr createNewContext()=0
Abstract factory which creates a context instance.
boost::shared_ptr< const Element > ConstElementPtr
isc::data::ConstElementPtr simpleParseConfig(isc::data::ConstElementPtr config, bool check_only=false, const std::function< void()> &post_config_cb=nullptr)
Acts as the receiver of new configurations.
This is a base class for exceptions thrown from the DNS library module.
Defines the logger used by the top-level component of kea-dhcp-ddns.
DCfgMgrBaseError(const char *file, size_t line, const char *what)
virtual void setCfgDefaults(isc::data::ElementPtr mutable_config)
Adds default values to the given config.
virtual ~DCfgMgrBase()
Destructor.
virtual isc::data::ConstElementPtr parse(isc::data::ConstElementPtr config, bool check_only)
Parses actual configuration.
DCfgMgrBase(ConfigPtr context)
Constructor.
ConfigPtr & getContext()
Fetches the configuration context.
boost::shared_ptr< ConfigBase > ConfigPtr
Non-const pointer to the SrvConfig.