ifw-ccf 5.0.2
Loading...
Searching...
No Matches
dataContext.hpp
Go to the documentation of this file.
1
5#ifndef CCFCONTROL_DATACONTEXT_HPP_
6#define CCFCONTROL_DATACONTEXT_HPP_
7
8#include <ifw/core/utils/param/parameterSet.hpp>
9
11#include <ifw/ccf/common/db.hpp>
13
14
15namespace ifw::ccf::control {
16
19 public:
20
29 DataContext(Config& config);
30
32 virtual ~DataContext();
33
35 void ReloadConfig();
36
38 void UpdateDb();
39
40 DataContext(const DataContext&) = delete;
41 DataContext& operator=(const DataContext&) = delete;
42
43 private:
44 Config& m_config;
45};
46
47} // namespace ifw::ccf::control
48
49#endif // CCFCONTROL_DATACONTEXT_HPP_
Provides access to the command line options and the configuration parameters stored in the configurat...
Definition config.hpp:32
Provides access to the application run-time data.
Definition dataContext.hpp:18
DataContext(const DataContext &)=delete
void UpdateDb()
Connect to the DB and update the application configuration.
Definition dataContext.cpp:28
DataContext(Config &config)
Definition dataContext.cpp:13
DataContext & operator=(const DataContext &)=delete
Disable copy constructor.
virtual ~DataContext()
Destructor.
Definition dataContext.cpp:18
void ReloadConfig()
Reload the configuration from file and reconnect to the in-memory DB.
Definition dataContext.cpp:22
Definition acqThread.cpp:10