7 #ifndef NETCONF_CONFIG_H 8 #define NETCONF_CONFIG_H 20 #include <unordered_map> 137 const std::string name_;
172 return (control_socket_);
179 return (boot_update_);
186 boot_update_ = boot_update;
193 return (subscribe_changes_);
200 return (subscribe_notifications_);
207 subscribe_changes_ = subscribe_changes;
214 subscribe_notifications_ = subscribe_notifications;
221 return (validate_changes_);
228 validate_changes_ = validate_changes;
232 std::string toText()
const;
241 const std::string model_;
253 bool subscribe_changes_;
260 bool subscribe_notifications_;
266 bool validate_changes_;
328 #endif // NETCONF_CONFIG_H bool getSubscribeNotifications() const
Getter which returns the subscribe-changes flag.
static const std::string typeToString(CfgControlSocket::Type type)
Converts CfgControlSocket::Type to string.
const isc::http::Url getUrl() const
Getter which returns the HTTP server URL.
Parser for CfgControlSocket.
Base class for user context.
boost::shared_ptr< Element > ElementPtr
static Type stringToType(const std::string &type)
Converts socket type name to CfgControlSocket::Type.
bool getSubscribeChanges() const
Getter which returns the subscribe-changes flag.
virtual ~CfgControlSocket()=default
Destructor (doing nothing).
std::unordered_map< std::string, CfgServerPtr > CfgServersMap
Defines a map of CfgServers, keyed by the name.
std::shared_ptr< CfgServersMap > CfgServersMapPtr
Defines a pointer to map of CfgServers.
const std::string getName() const
Getter which returns the Unix socket name.
const CfgControlSocketPtr & getCfgControlSocket() const
Getter which returns the control socket.
std::shared_ptr< CfgServer > CfgServerPtr
Defines a pointer for CfgServer instances.
Abstract class for configuration Cfg_* classes.
boost::shared_ptr< const Element > ConstElementPtr
std::pair< std::string, CfgServerPtr > CfgServersMapPair
Defines a iterator pairing of name and CfgServer.
const std::string getModel() const
Getter which returns the model name.
Type
Defines the list of possible control socket types.
std::shared_ptr< CfgControlSocket > CfgControlSocketPtr
Defines a pointer for CfgControlSocket instances.
Defines the logger used by the top-level component of kea-lfc.
void setBootUpdate(bool boot_update)
Set the boot-update flag.
void setSubscribeChanges(bool subscribe_changes)
Set the subscribe-changes flag.
CfgControlSocket(Type type, const std::string &name, const isc::http::Url &url)
Constructor.
Represents a Control Socket.
Type getType() const
Getter which returns the socket type.
bool getBootUpdate() const
Getter which returns the boot-update flag.
Represents a Managed CfgServer.
ostream & operator<<(ostream &os, const CfgServer &server)
Dumps the contents of a CfgServer as text to a output stream.
isc::data::ElementPtr toElement() const override final
Unparse a configuration object.
void setSubscribeNotifications(bool subscribe_notifications)
Set the subscribe-notifications flag.
bool getValidateChanges() const
Getter which returns the validate-changes flag.
void setValidateChanges(bool validate_changes)
Set the validate-changes flag.