10 #ifndef DEVMGR_DEVICE_ACTUATOR_IF_HPP
11 #define DEVMGR_DEVICE_ACTUATOR_IF_HPP
13 #include <unordered_map>
15 #include <yaml-cpp/yaml.h>
21 #include <rad/mal/publisher.hpp>
23 namespace fcf::devmgr {
61 template<
typename TOPIC_TYPE = fcfif::ActuatorTopicUnion>
82 ActuatorLcsIf(std::shared_ptr<devmgr::common::IDeviceConfig> config,
152 bool IsOn(
int state,
int substate);
164 bool IsOff(
int state,
int substate);
188 void Listener(fcf::common::VectorVariant& params);
195 virtual std::string
GetRpcError(
const short error_code)
const;
211 void StoreAttribute(
const std::string key,
212 const fcf::common::Variant& value,
227 #include "actuatorLcsIf.ipp"
229 #endif //DEVMGR_DEVICE_ACTUATOR_IF_HPP
void SwitchOff()
Executes the SwitchOff RPC.
bool IsOff()
Check if switch is off.
virtual void ReadStatus(ActuatorControllerData &status)
Read status from the controller.
ActuatorLcsIf(std::shared_ptr< devmgr::common::IDeviceConfig > config, devmgr::common::DataContext &data_ctx, bool initialise=true)
actuatorLcsIf constructor.
bool IsSwitchingOn()
Check if controller is switching the switch on.
The DeviceControllerData struct.
Definition: deviceLcsIf.hpp:31
actuator Local Control System (LCS) Interface (IF) class
Definition: actuatorLcsIf.hpp:62
std::unique_ptr< rad::cii::Publisher< TOPIC_TYPE > > m_publisher
Definition: actuatorLcsIf.hpp:218
virtual ~ActuatorLcsIf()
Default destructor.
Definition: actuatorLcsIf.hpp:88
bool IsOn()
Check if switch is on.
void SetData(const ActuatorControllerData &data)
Definition: actuatorLcsIf.cpp:38
virtual bool IsOperational()
Check if controller is in Operational.
virtual std::string GetSubstateStr() const
void Listener(fcf::common::VectorVariant ¶ms)
Callback to manage changes on the monitored items.
std::string GetErrorText() const
virtual bool IsReady()
Check if controller is in Standby/Ready state.
DataContext class header file.
ActuatorControllerData()
Definition: actuatorLcsIf.cpp:31
The actuatorControllerData struct.
Definition: actuatorLcsIf.hpp:33
Definition: dataContext.hpp:81
void SwitchOn()
Executes the SwitchOn RPC.
bool IsSwitchingOff()
Check if controller is switching the switch off.
virtual ~ActuatorControllerData()
Definition: actuatorLcsIf.cpp:35
deviceLcsIf class header file.
virtual std::string GetRpcError(const short error_code) const
actuatorConfig class header file.
Definition: deviceLcsIf.hpp:72