ifw-fcf  5.0.0-pre2
taskSetup.hpp
Go to the documentation of this file.
1 
8 #ifndef FCF_DEVMGR_COMMON_ACTIVITY_SETTING_HPP_
9 #define FCF_DEVMGR_COMMON_ACTIVITY_SETTING_HPP_
10 
11 // System headers
12 #include <string>
13 #include <any>
14 
15 // Local headers
16 #include <rad/activity.hpp>
17 #include <rad/smAdapter.hpp>
18 #include <utils/bat/logger.hpp>
19 
20 
21 
22 
23 namespace fcf {
24 namespace devmgr {
25  namespace common {
26 
27  class DataContext;
28  class DeviceFacade;
29 
49  class TaskSetup : public rad::ThreadActivity
50  {
51  public:
52 
61  TaskSetup(const std::string& id,
62  DataContext& data_ctx,
63  DeviceFacade& device_facade,
64  const std::any& payload);
65 
69  virtual ~TaskSetup();
70 
77  void Run() override;
78 
79 
80  TaskSetup(const TaskSetup&) = delete;
81  TaskSetup& operator= (const TaskSetup&) = delete;
82 
83  private:
84  DataContext& m_data_ctx;
85  DeviceFacade& m_device_facade;
86  std::any m_payload;
87  log4cplus::Logger m_logger;
88  };
89  }
90 }
91 } // namespace devmgr::Common
92 
93 #endif // FCF_DEVMGR_COMMON_ACTIVITY_SETTING_HPP_
Definition: dataContext.hpp:90
Definition: deviceFacade.hpp:54
Definition: taskSetup.hpp:50
virtual ~TaskSetup()
Default destructor.
Definition: taskSetup.cpp:43
TaskSetup(const std::string &id, DataContext &data_ctx, DeviceFacade &device_facade, const std::any &payload)
Class constructor.
Definition: taskSetup.cpp:31
TaskSetup & operator=(const TaskSetup &)=delete
Disable assignment operator.
TaskSetup(const TaskSetup &)=delete
Disable copy constructor.
void Run() override
Thread run method.
Definition: taskSetup.cpp:49
Definition: actionMgr.cpp:29