HLCC Documentation 2.2.0
Loading...
Searching...
No Matches
dataContext.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2020-2025 European Southern Observatory (ESO)
2//
3// SPDX-License-Identifier: LGPL-3.0-only
4
13#ifndef HLCC_LSVSIM_DATACONTEXT_HPP
14#define HLCC_LSVSIM_DATACONTEXT_HPP
15
16#include <mutex>
17
18#include <rad/dataContext.hpp>
19
20#include "config.hpp"
21#include "oldbInterface.hpp"
22
23
24namespace hlcc::lsvsim {
25
30class DataContext : public rad::DataContext {
31 public:
36
40 virtual ~DataContext();
41
46
50 void ReloadConfig();
51
56
60 void UpdateDb();
61
62 DataContext(const DataContext&) = delete;
63 DataContext& operator=(const DataContext&) = delete;
64
65 private:
66 Config m_config;
67 OldbInterface m_oldb_interface;
68};
69
70} // namespace hlcc::lsvsim
71
72#endif // HLCC_LSVSIM_DATACONTEXT_HPP
Definition config.hpp:143
Definition dataContext.hpp:30
void UpdateDb()
Definition dataContext.cpp:49
OldbInterface & GetOldbInterface()
Definition dataContext.cpp:44
DataContext & operator=(const DataContext &)=delete
Disable copy constructor.
void ReloadConfig()
Definition dataContext.cpp:37
virtual ~DataContext()
Definition dataContext.cpp:28
Config & GetConfig()
Definition dataContext.cpp:32
DataContext(const DataContext &)=delete
DataContext()
Definition dataContext.cpp:24
Definition oldbInterface.hpp:37
Config class header file.
OldbInterface class header file.
Definition actionMgr.cpp:30