ifw-fcf 8.0.2
 
Loading...
Searching...
No Matches
shutterptp.hpp
Go to the documentation of this file.
1
7
8#ifndef FCF_DEVMGR_DEVICE_SHUTTER_PTP_HPP
9#define FCF_DEVMGR_DEVICE_SHUTTER_PTP_HPP
10
15
16
18
31 {
32
33 public:
34
41 ShutterPtp(const std::string filename,
42 const std::string name,
44
45
49 virtual ~ShutterPtp() = default;
50
57 virtual void CreateObjects(std::shared_ptr<ifw::fcf::devmgr::common::IDeviceConfig> config = nullptr) override;
58
65 virtual void Setup(const std::any& payload) override;
66
73 virtual bool IsSetupActive(const std::any& payload) const override;
74
78 virtual void UpdateStatus() override;
79
85 virtual void Status(const std::any& payload, std::string& buffer) override;
86
93 virtual void Status(bool end_acq,
94 const ifw::core::dit::did::Did& dictionary,
95 std::shared_ptr<CCfits::FITS>& fits_handle) override;
96
97 private:
98 ShutterPtpControllerData m_controller_status;
99 log4cplus::Logger m_logger;
100 };
101}
102
103
104#endif //FCF_DEVMGR_DEVICE_SHUTTER_PTP_HPP
Definition dataContext.hpp:86
The Shutter class.
Definition shutter.hpp:36
virtual void Setup(const std::any &payload) override
Handle the Setup command from the SCXML state machine.
Definition shutterptp.cpp:166
virtual void UpdateStatus() override
Update the status of the shutter device in the OLDB.
Definition shutterptp.cpp:45
virtual ~ShutterPtp()=default
Default destructor.
virtual bool IsSetupActive(const std::any &payload) const override
Check if the setup is still active.
Definition shutterptp.cpp:205
virtual void CreateObjects(std::shared_ptr< ifw::fcf::devmgr::common::IDeviceConfig > config=nullptr) override
Create object instances.
Definition shutterptp.cpp:31
virtual void Status(const std::any &payload, std::string &buffer) override
Obtain the status of the device.
Definition shutterptp.cpp:88
ShutterPtp(const std::string filename, const std::string name, ifw::fcf::devmgr::common::DataContext &data_ctx)
ShutterPtp constructor.
Definition shutterptp.cpp:23
ShutterPtp class header file.
Definition shutterptp.hpp:17
The ShutterPtpControllerData struct.
Definition shutterptpLcsIf.hpp:33