ifw-fcf  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
19 
20 
21 
22 namespace fcf {
23 namespace devmgr {
24  namespace common {
25 
26  class DataContext;
27  class DeviceFacade;
28 
48  class TaskSetup : public rad::ThreadActivity
49  {
50  public:
51 
60  TaskSetup(const std::string& id,
61  DataContext& data_ctx,
62  DeviceFacade& device_facade,
63  const std::any& payload);
64 
68  virtual ~TaskSetup();
69 
76  void Run() override;
77 
78 
79  TaskSetup(const TaskSetup&) = delete;
80  TaskSetup& operator= (const TaskSetup&) = delete;
81 
82  private:
83  DataContext& m_data_ctx;
84  DeviceFacade& m_device_facade;
85  std::any m_payload;
86  //modif::ReqSetup m_setup_msg; //!< copy of original setup message
87  };
88  }
89 }
90 } // namespace devmgr::Common
91 
92 #endif // FCF_DEVMGR_COMMON_ACTIVITY_SETTING_HPP_
TaskSetup & operator=(const TaskSetup &)=delete
Disable assignment operator.
Definition: taskSetup.hpp:48
Definition: deviceFacade.hpp:39
Definition: dataContext.hpp:81
virtual ~TaskSetup()
Default destructor.
Definition: taskSetup.cpp:43
void Run() override
Thread run method.
Definition: taskSetup.cpp:49
TaskSetup(const std::string &id, DataContext &data_ctx, DeviceFacade &device_facade, const std::any &payload)
Class constructor.
Definition: taskSetup.cpp:32