rad  3.0.0
dataContext.hpp
Go to the documentation of this file.
1 
9 #ifndef HELLO_DATA_CONTEXT_HPP_
10 #define HELLO_DATA_CONTEXT_HPP_
11 
12 #include "config.hpp"
13 #include "dbInterface.hpp"
14 
15 namespace hello {
16 
22 {
23 public:
24  DataContext(Config& config, rad::DbAdapter& db_adapter);
25  virtual ~DataContext();
26 
27  void ReloadConfig();
28  void DbUpdate();
29 
31 
32  DataContext(const DataContext&) = delete;
33  DataContext& operator= (const DataContext&) = delete;
34 
35 private:
36  Config& m_config; // can be created only after reading the cmd line
37  rad::DbAdapter& m_runtime_db;
38  DbInterface m_db_interface;
39 };
40 
41 } // namespace hello
42 
43 #endif // HELLO_DATA_CONTEXT_HPP_
hello::DataContext
Definition: dataContext.hpp:22
dbInterface.hpp
DbInterface class header file.
hello::Config
Definition: config.hpp:47
hello::DataContext::operator=
DataContext & operator=(const DataContext &)=delete
Disable copy constructor.
config.hpp
Config class header file.
hello
Definition: actionMgr.cpp:21
hello::DbInterface
Definition: dbInterface.hpp:38
hello::DataContext::DbUpdate
void DbUpdate()
Definition: dataContext.cpp:54
hello::DataContext::GetDbInterface
DbInterface & GetDbInterface()
Definition: dataContext.cpp:78
hello::DataContext::ReloadConfig
void ReloadConfig()
Definition: dataContext.cpp:44
hello::DataContext::~DataContext
virtual ~DataContext()
Definition: dataContext.cpp:37
hello::DataContext::DataContext
DataContext(Config &config, rad::DbAdapter &db_adapter)
Definition: dataContext.cpp:26
hello::DataContext::DataContext
DataContext(const DataContext &)=delete
rad::DbAdapter
Definition: dbAdapter.hpp:29