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