6 #ifndef _USER_DATA_SOURCE_H
7 #define _USER_DATA_SOURCE_H
40 virtual void open() = 0;
55 virtual void close() = 0;
63 virtual bool isOpen()
const = 0;
UserDataSourceError(const char *file, size_t line, const char *what)
virtual bool isOpen() const =0
Returns true if the data source is open.
virtual UserPtr readNextUser()=0
Fetches the next user from the data source.
boost::shared_ptr< User > UserPtr
Defines a smart pointer to a User.
Thrown if UserDataSource encounters an error.
Defines the logger used by the user check hooks library.
This file defines classes: UserId and User.
virtual ~UserDataSource()
Virtual 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.
virtual void close()=0
Closes that data source.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
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.
boost::shared_ptr< UserDataSource > UserDataSourcePtr
Defines a smart pointer to a UserDataSource.
UserDataSource()
Constructor.
Defines an interface for reading user data into a registry.
virtual void open()=0
Opens the data source.