7 #ifndef LEASE_MGR_FACTORY_H
8 #define LEASE_MGR_FACTORY_H
14 #include <boost/scoped_ptr.hpp>
70 static void create(
const std::string& dbaccess);
99 static boost::scoped_ptr<LeaseMgr>& getLeaseMgrPtr();
106 #endif // LEASE_MGR_FACTORY_H
static void destroy()
Destroy lease manager.
An abstract API for lease database.
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.
No lease manager exception.
static void create(const std::string &dbaccess)
Create an instance of a lease manager.
static bool haveInstance()
Indicates if the lease manager has been instantiated.
static LeaseMgr & instance()
Return current lease manager.
NoLeaseManager(const char *file, size_t line, const char *what)