7#ifndef NETCONF_CONFIG_H 
    8#define NETCONF_CONFIG_H 
   19#include <unordered_map> 
  136    const std::
string name_;
 
 
  171        return (control_socket_);
 
 
  178        return (boot_update_);
 
 
  185        boot_update_ = boot_update;
 
 
  192        return (subscribe_changes_);
 
 
  199        return (subscribe_notifications_);
 
 
  206        subscribe_changes_ = subscribe_changes;
 
 
  213        subscribe_notifications_ = subscribe_notifications;
 
 
  220        return (validate_changes_);
 
 
  227        validate_changes_ = validate_changes;
 
 
  231    std::string toText() 
const;
 
  240    const std::
string model_;
 
  252    bool subscribe_changes_;
 
  259    bool subscribe_notifications_;
 
  265    bool validate_changes_;
 
 
  287std::ostream& operator<<(std::ostream& os, const 
CfgServer& server);
 
Represents a Control Socket.
const std::string getName() const
Getter which returns the Unix socket name.
Type getType() const
Getter which returns the socket type.
const isc::http::Url getUrl() const
Getter which returns the HTTP server URL.
isc::data::ElementPtr toElement() const override final
Unparse a configuration object.
Type
Defines the list of possible control socket types.
virtual ~CfgControlSocket()=default
Destructor (doing nothing).
CfgControlSocket(Type type, const std::string &name, const isc::http::Url &url)
Constructor.
static const std::string typeToString(CfgControlSocket::Type type)
Converts CfgControlSocket::Type to string.
static Type stringToType(const std::string &type)
Converts socket type name to CfgControlSocket::Type.
Represents a Managed CfgServer.
CfgServer(const std::string &model, CfgControlSocketPtr ctrl_sock)
Constructor.
virtual ~CfgServer()=default
Destructor (doing nothing).
bool getValidateChanges() const
Getter which returns the validate-changes flag.
void setSubscribeChanges(bool subscribe_changes)
Set the subscribe-changes flag.
bool getBootUpdate() const
Getter which returns the boot-update flag.
void setBootUpdate(bool boot_update)
Set the boot-update flag.
bool getSubscribeNotifications() const
Getter which returns the subscribe-changes flag.
bool getSubscribeChanges() const
Getter which returns the subscribe-changes flag.
void setValidateChanges(bool validate_changes)
Set the validate-changes flag.
void setSubscribeNotifications(bool subscribe_notifications)
Set the subscribe-notifications flag.
const CfgControlSocketPtr & getCfgControlSocket() const
Getter which returns the control socket.
const std::string getModel() const
Getter which returns the model name.
Parser for CfgControlSocket.
CfgControlSocketPtr parse(data::ConstElementPtr ctrl_sock_config)
Performs the actual parsing of the given "control-socket" element.
CfgServerPtr parse(data::ConstElementPtr server_config)
Performs the actual parsing of the given value from the "managed-servers" map.
boost::shared_ptr< const Element > ConstElementPtr
boost::shared_ptr< Element > ElementPtr
std::pair< std::string, CfgServerPtr > CfgServersMapPair
Defines a iterator pairing of name and CfgServer.
std::shared_ptr< CfgServer > CfgServerPtr
Defines a pointer for CfgServer instances.
std::shared_ptr< CfgControlSocket > CfgControlSocketPtr
Defines a pointer for CfgControlSocket instances.
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.
Defines the logger used by the top-level component of kea-lfc.
Abstract class for configuration Cfg_* classes.
Base class for user context.