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