|
ifw
0.0.1-dev
|
#include <dataContext.hpp>
This class provide access to the application run-time data including the in-memory DB.
| server::DataContext::DataContext | ( | Config & | config, |
| rad::DbAdapter & | dbAdapter | ||
| ) |
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 |
| server::DataContext::DataContext | ( | Config & | config, |
| rad::DbAdapter & | dbAdapter | ||
| ) |
|
virtual |
|
delete |
| server::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 |
| server::DataContext::DataContext | ( | Config & | config, |
| rad::DbAdapter & | dbAdapter | ||
| ) |
|
virtual |
|
delete |
| void server::DataContext::DbUpdate | ( | ) |
Try to connect to the DB and update the application configuration.
| void server::DataContext::DbUpdate | ( | ) |
| DbInterface& server::DataContext::GetDbInterface | ( | ) |
| DbInterface& server::DataContext::GetDbInterface | ( | ) |
| DbInterface& server::DataContext::GetDbInterface | ( | ) |
| DbInterface & server::DataContext::GetDbInterface | ( | ) |
| void server::DataContext::GetTargetPos | ( | double & | x, |
| double & | y | ||
| ) |
Get target device position.
| void server::DataContext::GetTargetPos | ( | double & | x, |
| double & | y | ||
| ) |
|
delete |
Disable copy constructor.
|
delete |
Disable copy constructor.
|
delete |
Disable copy constructor.
|
delete |
Disable copy constructor.
| void server::DataContext::ReloadConfig | ( | ) |
| void server::DataContext::ReloadConfig | ( | ) |
| void server::DataContext::ReloadConfig | ( | ) |
Reload the configuration from file and reconnect to the in-memory DB.
| void server::DataContext::ReloadConfig | ( | ) |
Reload the configuration from file and reconnect to the in-memory DB.
Set target device position.
| void server::DataContext::UpdateDb | ( | ) |
Try to connect to the DB and update the application configuration.
| void server::DataContext::UpdateDb | ( | ) |
Try to connect to the DB and update the application configuration.
1.8.5