 |
Kea
1.5.0
|
Go to the documentation of this file.
14 #include <boost/shared_ptr.hpp>
100 virtual void close();
105 virtual bool isOpen()
const;
UserPtr makeUser(const std::string &user_string)
Creates a new User instance from JSON text.
UserFileError(const char *file, size_t line, const char *what)
Defines an interface for reading user data into a registry.
virtual bool isOpen() const
Returns true if the file is open.
boost::shared_ptr< UserFile > UserFilePtr
Defines a smart pointer to a UserFile.
virtual ~UserFile()
Destructor. / The destructor does call the close method.
Provides a UserDataSource implementation for JSON text files.
Thrown a UserFile encounters an error.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
static const size_t USER_ENTRY_MAX_LEN
Maximum length of a single user entry.
UserFile(const std::string &fname)
Constructor.
virtual UserPtr readNextUser()
Fetches the next user from the file.
virtual void close()
Closes the underlying file.
virtual void open()
Opens the input file for reading.
Defines the logger used by the user check hooks library.
These classes are used to describe and recognize DHCP lease clients.
Thrown if UserDataSource encounters an error.
boost::shared_ptr< User > UserPtr
Defines a smart pointer to a User.