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