10 #ifndef FCF_DEVMGR_DEVICE_ACTUATOR_HPP
11 #define FCF_DEVMGR_DEVICE_ACTUATOR_HPP
13 #include "fcf/common/dispatcher.hpp"
52 Actuator(
const std::string& filename,
53 const std::string& name,
71 void CreateObjects(std::shared_ptr<devmgr::common::IDeviceConfig> config =
nullptr);
88 void RegisterComm(std::shared_ptr<fcf::common::IComm> comm_if,
89 fcf::common::Dispatcher<>& failure,
90 fcf::common::Dispatcher<>& normal);
99 virtual void Setup(
const std::any& payload);
121 virtual void Status(
const std::any& payload, std::string& buffer);
133 virtual void Status(
bool end_acq,
134 const dit::did::Did& dictionary,
135 std::shared_ptr<CCfits::FITS>& fits_handle);
149 virtual std::shared_ptr<fcf::devmgr::common::DeviceLcsIf>
GetLcsIf()
const;
156 virtual std::shared_ptr<fcf::devmgr::common::IDeviceConfig>
GetConfig()
const;
164 std::shared_ptr<ActuatorLcsIf<fcfif::ActuatorTopicUnion>>
m_lcs_if;
171 #endif //FCF_DEVMGR_DEVICE_ACTUATOR_HPP
virtual std::shared_ptr< fcf::devmgr::common::IDeviceConfig > GetConfig() const
Get a pointer of device configuration.
Definition: actuator.cpp:109
The actuator class.
Definition: actuator.hpp:43
Device class header file.
Actuator(const std::string &filename, const std::string &name, devmgr::common::DataContext &data_ctx)
actuator constructor
Definition: actuator.cpp:30
ActuatorControllerData m_controller_status
< object containing the status of the controller
Definition: actuator.hpp:160
virtual std::shared_ptr< fcf::devmgr::common::DeviceLcsIf > GetLcsIf() const
Definition: actuator.cpp:102
Definition: device.hpp:30
std::shared_ptr< ActuatorConfig > m_config
pointer to device config object
Definition: actuator.hpp:161
virtual bool IsSetupActive(const std::any &payload) const
Check if last setup message is still active.
Definition: actuator.cpp:155
void CreateObjects(std::shared_ptr< devmgr::common::IDeviceConfig > config=nullptr)
Create object instances.
Definition: actuator.cpp:38
DataContext class header file.
The actuatorControllerData struct.
Definition: actuatorLcsIf.hpp:33
virtual ~Actuator()
Default destructor.
Definition: actuator.hpp:59
Definition: dataContext.hpp:81
actuatorLcsIf class header file.
virtual void Status(const std::any &payload, std::string &buffer)
Obtain the status of the device.
Definition: actuator.cpp:274
virtual void Setup(const std::any &payload)
Executes a setup of the actuator device.
Definition: actuator.cpp:115
virtual void UpdateStatus()
Update the status of the actuator device in the OLDB.
Definition: actuator.cpp:229
std::shared_ptr< ActuatorLcsIf< fcfif::ActuatorTopicUnion > > m_lcs_if
pointer to device lcs interface object
Definition: actuator.hpp:164
void RegisterComm(std::shared_ptr< fcf::common::IComm > comm_if, fcf::common::Dispatcher<> &failure, fcf::common::Dispatcher<> &normal)
Register a communication interface object.
Definition: actuator.cpp:91
actuatorConfig class header file.