10 #ifndef FCF_DEVMGR_DEVICE_DROT_HPP
11 #define FCF_DEVMGR_DEVICE_DROT_HPP
13 #include "fcf/common/dispatcher.hpp"
52 Drot(
const std::string& filename,
53 const std::string& name,
72 void CreateObjects(std::shared_ptr<fcf::devmgr::common::IDeviceConfig> config =
nullptr)
override;
89 void RegisterComm(std::shared_ptr<fcf::common::IComm> comm_if,
90 fcf::common::Dispatcher<>& failure,
91 fcf::common::Dispatcher<>& normal)
override;
100 virtual void Setup(
const std::any& payload)
override;
114 virtual bool IsSetupActive(
const std::any& payload)
const override;
125 virtual void Status(
const std::any& payload, std::string& buffer)
override;
137 virtual void Status(
bool end_acq,
138 const dit::did::Did& dictionary,
139 std::shared_ptr<CCfits::FITS>& fits_handle)
override;
154 virtual std::shared_ptr<fcf::devmgr::common::DeviceLcsIf>
GetLcsIf()
const override;
161 virtual std::shared_ptr<fcf::devmgr::common::IDeviceConfig>
GetConfig()
const override;
170 std::shared_ptr<DrotLcsIf<fcfif::DrotTopicUnion>>
m_lcs_if;
177 #endif //FCF_DEVMGR_DEVICE_DROT_HPP
drotLcsIf class header file.
virtual bool IsSetupActive(const std::any &payload) const override
Check if last setup message is still active.
Definition: drot.cpp:192
Device class header file.
std::shared_ptr< DrotLcsIf< fcfif::DrotTopicUnion > > m_lcs_if
pointer to device lcs interface object
Definition: drot.hpp:170
DrotConfig class header file.
const std::string GetTargetNamedPosition()
Definition: drot.cpp:270
void RegisterComm(std::shared_ptr< fcf::common::IComm > comm_if, fcf::common::Dispatcher<> &failure, fcf::common::Dispatcher<> &normal) override
Register a communication interface object.
Definition: drot.cpp:80
virtual void Status(const std::any &payload, std::string &buffer) override
Obtain the status of the device.
Definition: drot.cpp:372
void SetTargetNamedPosition(const std::string named_position)
Definition: drot.cpp:263
std::string m_target_named_pos
Definition: drot.hpp:166
virtual void UpdateStatus() override
Update the status of the Drot device in the OLDB.
Definition: drot.cpp:276
Definition: device.hpp:30
Drot(const std::string &filename, const std::string &name, fcf::devmgr::common::DataContext &data_ctx)
Drot constructor.
Definition: drot.cpp:30
The Drot class.
Definition: drot.hpp:43
virtual void Setup(const std::any &payload) override
Executes a setup of the drot device.
Definition: drot.cpp:96
IDeviceConfig class header file.
void CreateObjects(std::shared_ptr< fcf::devmgr::common::IDeviceConfig > config=nullptr) override
Create object instances.
Definition: drot.cpp:38
virtual std::shared_ptr< fcf::devmgr::common::DeviceLcsIf > GetLcsIf() const override
Definition: drot.cpp:90
virtual std::shared_ptr< fcf::devmgr::common::IDeviceConfig > GetConfig() const override
Get a pointer of device configuration.
Definition: drot.cpp:465
DataContext class header file.
DrotControllerData m_controller_status
< object containing the status of the controller
Definition: drot.hpp:165
Definition: dataContext.hpp:81
virtual ~Drot()
Default destructor.
Definition: drot.hpp:59
std::shared_ptr< DrotConfig > m_config
pointer to device config object
Definition: drot.hpp:167
The drotControllerData struct.
Definition: drotLcsIf.hpp:29