6 #ifndef _USER_REGISTRY_H
7 #define _USER_REGISTRY_H
void setSource(UserDataSourcePtr &source)
Sets the data source to the given value.
void refresh()
Updates the registry from its data source.
const UserDataSourcePtr & getSource()
Returns a reference to the data source.
Encapsulates a unique identifier for a DHCP client.
const UserPtr & findUser(const UserId &id) const
Finds a user in the registry by user id.
void addUser(UserPtr &user)
Adds a given user to the registry.
boost::shared_ptr< User > UserPtr
Defines a smart pointer to a User.
Holds DUID (DHCPv6 Unique Identifier)
Defines the logger used by the user check hooks library.
This file defines classes: UserId and User.
UserRegistry()
Constructor.
void clearall()
Removes all entries from the registry.
Exception(const char *file, size_t line, const char *what)
Constructor for a given type for exceptions with file name and file line number.
std::map< UserId, UserPtr > UserMap
Defines a map of unique Users keyed by UserId.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
UserRegistryError(const char *file, size_t line, const char *what)
~UserRegistry()
Destructor.
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.
void removeUser(const UserId &id)
Removes a user from the registry by user id.
boost::shared_ptr< UserDataSource > UserDataSourcePtr
Defines a smart pointer to a UserDataSource.
Embodies an update-able, searchable list of unique users This class provides the means to create and ...
Hardware type that represents information from DHCPv4 packet.
Defines the base class, UserDataSource.
boost::shared_ptr< UserRegistry > UserRegistryPtr
Define a smart pointer to a UserRegistry.
Thrown UserRegistry encounters an error.