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