rad 6.2.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
exciiserver::DataContext Class Reference

#include <dataContext.hpp>

Inheritance diagram for exciiserver::DataContext:
rad::DataContext

Public Member Functions

 DataContext ()
 
virtual ~DataContext ()
 
void Initialize () override
 
OldbInterfaceGetOldbInterface ()
 
ConfigGetConfig ()
 
void ReloadConfig ()
 
void UpdateDb ()
 
rad::OldbAsyncWriterGetOldbAsyncWriter ()
 
void GetTargetRaDec (float &ra, float &dec)
 
void SetTargetRaDec (const float ra, const float dec)
 
 DataContext (const DataContext &)=delete
 
DataContextoperator= (const DataContext &)=delete
 Disable copy constructor.
 
- Public Member Functions inherited from rad::DataContext
 DataContext ()
 
virtual void SetTrsHealth (TrsHealthState health)
 
virtual TrsHealthState GetTrsHealth ()
 

Additional Inherited Members

- Public Types inherited from rad::DataContext
enum class  TrsHealthState { UNKNOWN , DISABLED , GOOD , BAD }
 

Detailed Description

This class provide access to the application run-time data including the in-memory DB.

Constructor & Destructor Documentation

◆ DataContext() [1/2]

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.

◆ ~DataContext()

exciiserver::DataContext::~DataContext ( )
virtual

Destructor

Reimplemented from rad::DataContext.

◆ DataContext() [2/2]

exciiserver::DataContext::DataContext ( const DataContext & )
delete

Member Function Documentation

◆ GetConfig()

Config & exciiserver::DataContext::GetConfig ( )
virtual
Returns
A reference to the Config object.

Implements rad::DataContext.

◆ GetOldbAsyncWriter()

rad::OldbAsyncWriter & exciiserver::DataContext::GetOldbAsyncWriter ( )
inline
Returns
A reference to the GetOldbAsyncWriter object.

◆ GetOldbInterface()

OldbInterface & exciiserver::DataContext::GetOldbInterface ( )
virtual
Returns
A reference to the DB interface object.

Implements rad::DataContext.

◆ GetTargetRaDec()

void exciiserver::DataContext::GetTargetRaDec ( float & ra,
float & dec )

◆ Initialize()

void exciiserver::DataContext::Initialize ( )
overridevirtual

Initialize the class and attributes after they have been created and the configuration has been loaded.

Reimplemented from rad::DataContext.

◆ operator=()

DataContext & exciiserver::DataContext::operator= ( const DataContext & )
delete

Disable copy constructor.

◆ ReloadConfig()

void exciiserver::DataContext::ReloadConfig ( )
virtual

Reload the configuration from file and reconnect to the in-memory DB.

Implements rad::DataContext.

◆ SetTargetRaDec()

void exciiserver::DataContext::SetTargetRaDec ( const float ra,
const float dec )

◆ UpdateDb()

void exciiserver::DataContext::UpdateDb ( )
virtual

Try to connect to the DB and update the application configuration.

Implements rad::DataContext.


The documentation for this class was generated from the following files: