rad  4.0.0
Public Member Functions | List of all members
exciiserver::DataContext Class Reference

#include <dataContext.hpp>

Public Member Functions

 DataContext (Config &config, OldbInterface &oldb_interface)
 
virtual ~DataContext ()
 
void UpdateDb ()
 
OldbInterfaceGetOldbInterface ()
 
ConfigGetConfig ()
 
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. More...
 

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 ( 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.

Parameters
[in]configReference to the application configuration.

◆ ~DataContext()

exciiserver::DataContext::~DataContext ( )
virtual

Destructor

◆ DataContext() [2/2]

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

Member Function Documentation

◆ GetConfig()

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

◆ GetOldbInterface()

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

◆ GetTargetRaDec()

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

◆ operator=()

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

Disable copy constructor.

◆ SetTargetRaDec()

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

◆ UpdateDb()

void exciiserver::DataContext::UpdateDb ( )

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


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