ifw-fcf 8.0.2
 
Loading...
Searching...
No Matches
taskSetup.hpp
Go to the documentation of this file.
1
7
8#ifndef FCF_DEVMGR_COMMON_ACTIVITY_SETTING_HPP_
9#define FCF_DEVMGR_COMMON_ACTIVITY_SETTING_HPP_
10
11#include <string>
12#include <any>
13
14#include <rad/activity.hpp>
15#include <rad/smAdapter.hpp>
16#include <ifw/core/utils/bat/logger.hpp>
17
18
19namespace ifw::fcf {
20namespace devmgr {
21 namespace common {
22
23 class DataContext;
24 class DeviceFacade;
25
45 class TaskSetup : public rad::ThreadActivity
46 {
47 public:
48
57 TaskSetup(const std::string& id,
58 DataContext& data_ctx,
59 DeviceFacade& device_facade,
60 const std::any& payload);
61
65 virtual ~TaskSetup();
66
73 void Run() override;
74
75
76 TaskSetup(const TaskSetup&) = delete;
77 TaskSetup& operator= (const TaskSetup&) = delete;
78
79 private:
80 DataContext& m_data_ctx;
81 DeviceFacade& m_device_facade;
82 std::any m_payload;
83 log4cplus::Logger m_logger;
84 };
85 }
86}
87} // namespace devmgr::Common
88
89#endif // FCF_DEVMGR_COMMON_ACTIVITY_SETTING_HPP_
Definition dataContext.hpp:86
Definition deviceFacade.hpp:59
virtual ~TaskSetup()
Default destructor.
Definition taskSetup.cpp:39
TaskSetup(const std::string &id, DataContext &data_ctx, DeviceFacade &device_facade, const std::any &payload)
Class constructor.
Definition taskSetup.cpp:27
TaskSetup & operator=(const TaskSetup &)=delete
Disable assignment operator.
TaskSetup(const TaskSetup &)=delete
Disable copy constructor.
void Run() override
Thread run method.
Definition taskSetup.cpp:44
ActionMgr class source file.
Definition actionMgr.cpp:28
actuatorLcsIf class header file.
Definition actionMgr.cpp:28
ActionsEnable class source file.
Definition actionMgr.cpp:28