|
rad
4.0.0
|
#include <dataContext.hpp>
Public Member Functions | |
| DataContext (Config &config, OldbInterface &oldb_interface) | |
| virtual | ~DataContext () |
| void | UpdateDb () |
| OldbInterface & | GetOldbInterface () |
| Config & | GetConfig () |
| void | GetTargetRaDec (float &ra, float &dec) |
| void | SetTargetRaDec (const float ra, const float dec) |
| 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.
| exciiserver::DataContext::DataContext | ( | Config & | config, |
| OldbInterface & | oldb_interface | ||
| ) |
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 |
| OldbInterface & exciiserver::DataContext::GetOldbInterface | ( | ) |
| void exciiserver::DataContext::GetTargetRaDec | ( | float & | ra, |
| float & | dec | ||
| ) |
|
delete |
Disable copy constructor.
| void exciiserver::DataContext::SetTargetRaDec | ( | const float | ra, |
| const float | dec | ||
| ) |
| void exciiserver::DataContext::UpdateDb | ( | ) |
Try to connect to the DB and update the application configuration.