rad 6.2.0
|
#include <dataContext.hpp>
Public Member Functions | |
DataContext () | |
virtual | ~DataContext () |
void | Initialize () override |
OldbInterface & | GetOldbInterface () |
Config & | GetConfig () |
void | ReloadConfig () |
void | UpdateDb () |
rad::OldbAsyncWriter & | GetOldbAsyncWriter () |
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. | |
![]() | |
DataContext () | |
virtual void | SetTrsHealth (TrsHealthState health) |
virtual TrsHealthState | GetTrsHealth () |
Additional Inherited Members | |
![]() | |
enum class | TrsHealthState { UNKNOWN , DISABLED , GOOD , BAD } |
This class provide access to the application run-time data including the in-memory DB.
exciiserver::DataContext::DataContext | ( | ) |
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.
|
virtual |
Destructor
Reimplemented from rad::DataContext.
|
delete |
|
virtual |
Implements rad::DataContext.
|
inline |
|
virtual |
Implements rad::DataContext.
void exciiserver::DataContext::GetTargetRaDec | ( | float & | ra, |
float & | dec ) |
|
overridevirtual |
Initialize the class and attributes after they have been created and the configuration has been loaded.
Reimplemented from rad::DataContext.
|
delete |
Disable copy constructor.
|
virtual |
Reload the configuration from file and reconnect to the in-memory DB.
Implements rad::DataContext.
void exciiserver::DataContext::SetTargetRaDec | ( | const float | ra, |
const float | dec ) |
|
virtual |
Try to connect to the DB and update the application configuration.
Implements rad::DataContext.