#include <driver-manager.h>
Public Member Functions | |
DriverManager (Yehia::PluginManager &mgr=Yehia::PluginManager::instance(), const std::string &area="gql") | |
Contructor. | |
~DriverManager () | |
Destructor. | |
Connection * | get_connection (const std::string &url, const std::string &name=std::string(), const std::string &passwd=std::string()) |
Try to open a connection. | |
bool | register_driver (const std::string &id) |
Register a driver. | |
void | deregister_driver (const std::string &id) |
Remove a driver. | |
std::list< std::string > | get_registered_drivers () const |
Get a list of registered drivers. | |
const Yehia::PluginNode & | get_drivers () const |
Get the parent node of the drivers. | |
Driver * | get_driver (const std::string &id) |
bool | is_auto_load () const |
Get autoload status. | |
void | set_auto_load (bool do_auto) |
Set autoload status. | |
Yehia::PluginManager & | plugin_manager () |
Get underlying PluginManager object. |
The DriverManager is responsible for opening connections and managing the drivers. It uses an uC::PluginManager object for the driver plugin management.
|
Contructor.
|
|
Destructor.
|
|
Remove a driver.
|
|
Try to open a connection.
If is_auto_load() is
|
|
|
|
Get the parent node of the drivers.
|
|
Get a list of registered drivers.
|
|
Get autoload status.
|
|
Get underlying PluginManager object.
|
|
Register a driver.
|
|
Set autoload status.
|