rad  4.0.0
dataContext.hpp
Go to the documentation of this file.
1 
9 #ifndef EXCIISERVER_DATA_CONTEXT_HPP
10 #define EXCIISERVER_DATA_CONTEXT_HPP
11 
12 
13 namespace exciiserver {
14 
15 class Config;
16 class OldbInterface;
17 
22 class DataContext {
23  public:
32  DataContext(Config& config, OldbInterface& oldb_interface);
33 
37  virtual ~DataContext();
38 
42  void UpdateDb();
43 
48 
52  Config& GetConfig();
53 
54  void GetTargetRaDec(float& ra, float& dec);
55  void SetTargetRaDec(const float ra, const float dec);
56 
57  DataContext(const DataContext&) = delete;
58  DataContext& operator=(const DataContext&) = delete;
59 
60  private:
61  Config& m_config;
62  OldbInterface& m_oldb_interface;
63  float m_ra;
64  float m_dec;
65 };
66 
67 } // namespace exciiserver
68 
69 #endif // EXCIISERVER_DATA_CONTEXT_HPP
exciiserver::OldbInterface
Definition: oldbInterface.hpp:59
exciiserver::DataContext
Definition: dataContext.hpp:22
exciiserver::DataContext::~DataContext
virtual ~DataContext()
Definition: dataContext.cpp:30
exciiserver::DataContext::GetOldbInterface
OldbInterface & GetOldbInterface()
Definition: dataContext.cpp:47
exciiserver::DataContext::UpdateDb
void UpdateDb()
Definition: dataContext.cpp:34
exciiserver::Config
Definition: config.hpp:48
exciiserver
Definition: actionMgr.cpp:23
exciiserver::DataContext::SetTargetRaDec
void SetTargetRaDec(const float ra, const float dec)
Definition: dataContext.cpp:63
exciiserver::DataContext::GetConfig
Config & GetConfig()
Definition: dataContext.cpp:52
exciiserver::DataContext::operator=
DataContext & operator=(const DataContext &)=delete
Disable copy constructor.
exciiserver::DataContext::DataContext
DataContext(const DataContext &)=delete
exciiserver::DataContext::DataContext
DataContext(Config &config, OldbInterface &oldb_interface)
Definition: dataContext.cpp:21
exciiserver::DataContext::GetTargetRaDec
void GetTargetRaDec(float &ra, float &dec)
Definition: dataContext.cpp:57