|
rad
2.0.0
|
#include <dataContext.hpp>
Public Member Functions | |
| DataContext (Config &config, rad::DbAdapter &db_adapter) | |
| virtual | ~DataContext () |
| void | ReloadConfig () |
| void | UpdateDb () |
| DbInterface & | GetDbInterface () |
| DataContext (const DataContext &)=delete | |
| DataContext & | operator= (const DataContext &)=delete |
| Disable copy constructor. More... | |
| DataContext (Config &config, rad::DbAdapter &db_adapter) | |
| virtual | ~DataContext () |
| void | ReloadConfig () |
| void | UpdateDb () |
| DbInterface & | GetDbInterface () |
| DataContext (const DataContext &)=delete | |
| DataContext & | operator= (const DataContext &)=delete |
| Disable copy constructor. More... | |
This class provide access to the application run-time data including the in-memory DB.
| hellomal::DataContext::DataContext | ( | Config & | config, |
| rad::DbAdapter & | db_adapter | ||
| ) |
This constructor uses the application configuration to initialize the adapter object to the in-memory DB. The DB adapter is then used to initialize the DB interface object that can be used to access the DB key-value pairs.
| [in] | config | Reference to the application configuration. |
|
virtual |
Destructor
|
delete |
| hellomal::DataContext::DataContext | ( | Config & | config, |
| rad::DbAdapter & | db_adapter | ||
| ) |
This constructor uses the application configuration to initialize the adapter object to the in-memory DB. The DB adapter is then used to initialize the DB interface object that can be used to access the DB key-value pairs.
| [in] | config | Reference to the application configuration. |
|
virtual |
Destructor
|
delete |
| DbInterface & hellomal::DataContext::GetDbInterface | ( | ) |
| DbInterface& hellomal::DataContext::GetDbInterface | ( | ) |
|
delete |
Disable copy constructor.
|
delete |
Disable copy constructor.
| void hellomal::DataContext::ReloadConfig | ( | ) |
Reload the configuration from file and reconnect to the in-memory DB.
| void hellomal::DataContext::ReloadConfig | ( | ) |
Reload the configuration from file and reconnect to the in-memory DB.
| void hellomal::DataContext::UpdateDb | ( | ) |
Try to connect to the DB and update the application configuration.
| void hellomal::DataContext::UpdateDb | ( | ) |
Try to connect to the DB and update the application configuration.
1.8.5