ifw
0.0.1-dev
|
Public Member Functions | |
MyLamp (const std::string &filename, const std::string &name, devmgr::common::DataContext &data_ctx) | |
void | CreateObjects (std::shared_ptr< devmgr::common::IDeviceConfig > config) |
![]() | |
Lamp (const std::string &filename, const std::string &name, devmgr::common::DataContext &data_ctx) | |
Lamp constructor. More... | |
void | CreateObjects (std::shared_ptr< devmgr::common::IDeviceConfig > config=nullptr) |
Create object instances. More... | |
void | RegisterComm (std::shared_ptr< fcf::common::IComm > comm_if, fcf::common::Dispatcher<> &failure, fcf::common::Dispatcher<> &normal) |
Register a communication interface object. More... | |
virtual void | Setup (const modif::ReqSetup &setupMsg) |
Executes a setup of the lamp device. More... | |
virtual bool | IsSetupActive (const modif::ReqSetup &setupMsg) const |
Check if last setup message is still active. More... | |
virtual void | Status (const modif::ReqStatus &statusMsg, std::string &buffer) |
Obtain the status of the device. More... | |
virtual void | Status (bool end_acq, const dit::did::Did &dictionary, CCfits::FITS *fits_handle=nullptr) |
Obtain the status of the device. More... | |
virtual void | UpdateStatus () |
Update the status of the lamp device in the OLDB. More... | |
virtual std::shared_ptr < devmgr::common::DeviceLcsIf > | GetLcsIf () const |
virtual std::shared_ptr < devmgr::common::IDeviceConfig > | GetConfig () const |
Get a pointer of device configuration. More... | |
Lamp (const std::string &filename, const std::string &name, devmgr::common::DataContext &data_ctx) | |
Lamp constructor. More... | |
void | CreateObjects (std::shared_ptr< devmgr::common::IDeviceConfig > config=nullptr) |
Create object instances. More... | |
void | RegisterComm (std::shared_ptr< fcf::common::IComm > comm_if, fcf::common::Dispatcher<> &failure, fcf::common::Dispatcher<> &normal) |
Register a communication interface object. More... | |
virtual void | Setup (const modif::ReqSetup &setupMsg) |
Executes a setup of the lamp device. More... | |
virtual bool | IsSetupActive (const modif::ReqSetup &setupMsg) const |
Check if last setup message is still active. More... | |
virtual void | Status (const modif::ReqStatus &statusMsg, std::string &buffer) |
Obtain the status of the device. More... | |
virtual void | Status (bool end_acq, const dit::did::Did &dictionary, CCfits::FITS *fits_handle=nullptr) |
Obtain the status of the device. More... | |
virtual void | UpdateStatus () |
Update the status of the lamp device in the OLDB. More... | |
virtual std::shared_ptr < devmgr::common::DeviceLcsIf > | GetLcsIf () const |
virtual std::shared_ptr < devmgr::common::IDeviceConfig > | GetConfig () const |
Get a pointer of device configuration. More... | |
Lamp (const std::string &filename, const std::string &name, devmgr::common::DataContext &data_ctx) | |
Lamp constructor. More... | |
void | CreateObjects (std::shared_ptr< devmgr::common::IDeviceConfig > config=nullptr) |
Create object instances. More... | |
void | RegisterComm (std::shared_ptr< fcf::common::IComm > comm_if, fcf::common::Dispatcher<> &failure, fcf::common::Dispatcher<> &normal) |
Register a communication interface object. More... | |
virtual void | Setup (const modif::ReqSetup &setupMsg) |
Executes a setup of the lamp device. More... | |
virtual bool | IsSetupActive (const modif::ReqSetup &setupMsg) const |
Check if last setup message is still active. More... | |
virtual void | Status (const modif::ReqStatus &statusMsg, std::string &buffer) |
Obtain the status of the device. More... | |
virtual void | Status (bool end_acq, const dit::did::Did &dictionary, CCfits::FITS *fits_handle=nullptr) |
Obtain the status of the device. More... | |
virtual void | UpdateStatus () |
Update the status of the lamp device in the OLDB. More... | |
virtual std::shared_ptr < devmgr::common::DeviceLcsIf > | GetLcsIf () const |
virtual std::shared_ptr < devmgr::common::IDeviceConfig > | GetConfig () const |
Get a pointer of device configuration. More... | |
![]() | |
Device (const std::string filename, const std::string name, DataContext &data_ctx) | |
Device abstract class constructor. More... | |
virtual | ~Device () |
Default destructor. More... | |
virtual bool | IsNotReady () const |
Check if device is Standby/NotReady. More... | |
virtual bool | IsReady () const |
Check if device is Standby/Ready. More... | |
virtual bool | IsOperational () const |
Check if device is Operational. More... | |
virtual void | CheckHwFailure () const |
Check if device is in failure state. More... | |
virtual bool | IsDisabling () const |
Check if device is disablig. More... | |
virtual void | Init () |
Executes a Init command. More... | |
virtual void | Enable () |
Executes a Enable command. More... | |
virtual void | Disable () |
Executes a Disable command. More... | |
virtual void | Stop () |
Executes a Stop command. More... | |
virtual void | Reset () |
Executes a Reset command. More... | |
virtual void | HwReset (modif::ReqHwReset &hwResetMsg) |
Executes a hardware reset command. More... | |
virtual void | HwInit (modif::ReqHwInit &hwInitMsg) |
Executes a hardware init command. More... | |
virtual void | HwEnable (modif::ReqHwEnable &hwEnableMsg) |
Executes a hardware enable command. More... | |
virtual void | HwDisable (modif::ReqHwDisable &hwDisableMsg) |
Executes a hardware disable command. More... | |
virtual void | Simulate (const modif::ReqSimulate &msg) |
Executes a Simulat. More... | |
virtual void | StopSim (const modif::ReqStopSim &msg) |
Executes a StopSim. More... | |
virtual void | Ignore (const modif::ReqIgnore &msg) |
Executes a Ignore. More... | |
virtual void | StopIgn (const modif::ReqStopIgn &msg) |
Executes a StopIgn. More... | |
virtual void | StartMonitoring () |
Start device monitoring via OPCUA subscriptions. More... | |
virtual void | StopMonitoring () |
Stop device monitoring. More... | |
virtual std::string | GetName () const |
Get device id. More... | |
Device (const std::string filename, const std::string name, DataContext &data_ctx) | |
Device abstract class constructor. More... | |
virtual | ~Device () |
Default destructor. More... | |
virtual bool | IsNotReady () const |
Check if device is Standby/NotReady. More... | |
virtual bool | IsReady () const |
Check if device is Standby/Ready. More... | |
virtual bool | IsOperational () const |
Check if device is Operational. More... | |
virtual void | CheckHwFailure () const |
Check if device is in failure state. More... | |
virtual bool | IsDisabling () const |
Check if device is disablig. More... | |
virtual void | Init () |
Executes a Init command. More... | |
virtual void | Enable () |
Executes a Enable command. More... | |
virtual void | Disable () |
Executes a Disable command. More... | |
virtual void | Stop () |
Executes a Stop command. More... | |
virtual void | Reset () |
Executes a Reset command. More... | |
virtual void | HwReset (modif::ReqHwReset &hwResetMsg) |
Executes a hardware reset command. More... | |
virtual void | HwInit (modif::ReqHwInit &hwInitMsg) |
Executes a hardware init command. More... | |
virtual void | HwEnable (modif::ReqHwEnable &hwEnableMsg) |
Executes a hardware enable command. More... | |
virtual void | HwDisable (modif::ReqHwDisable &hwDisableMsg) |
Executes a hardware disable command. More... | |
virtual void | Simulate (const modif::ReqSimulate &msg) |
Executes a Simulat. More... | |
virtual void | StopSim (const modif::ReqStopSim &msg) |
Executes a StopSim. More... | |
virtual void | Ignore (const modif::ReqIgnore &msg) |
Executes a Ignore. More... | |
virtual void | StopIgn (const modif::ReqStopIgn &msg) |
Executes a StopIgn. More... | |
virtual void | StartMonitoring () |
Start device monitoring via OPCUA subscriptions. More... | |
virtual void | StopMonitoring () |
Stop device monitoring. More... | |
virtual std::string | GetName () const |
Get device id. More... | |
Device (const std::string filename, const std::string name, DataContext &data_ctx) | |
Device abstract class constructor. More... | |
virtual | ~Device () |
Default destructor. More... | |
virtual bool | IsNotReady () const |
Check if device is Standby/NotReady. More... | |
virtual bool | IsReady () const |
Check if device is Standby/Ready. More... | |
virtual bool | IsOperational () const |
Check if device is Operational. More... | |
virtual void | CheckHwFailure () const |
Check if device is in failure state. More... | |
virtual bool | IsDisabling () const |
Check if device is disablig. More... | |
virtual void | Init () |
Executes a Init command. More... | |
virtual void | Enable () |
Executes a Enable command. More... | |
virtual void | Disable () |
Executes a Disable command. More... | |
virtual void | Stop () |
Executes a Stop command. More... | |
virtual void | Reset () |
Executes a Reset command. More... | |
virtual void | HwReset (modif::ReqHwReset &hwResetMsg) |
Executes a hardware reset command. More... | |
virtual void | HwInit (modif::ReqHwInit &hwInitMsg) |
Executes a hardware init command. More... | |
virtual void | HwEnable (modif::ReqHwEnable &hwEnableMsg) |
Executes a hardware enable command. More... | |
virtual void | HwDisable (modif::ReqHwDisable &hwDisableMsg) |
Executes a hardware disable command. More... | |
virtual void | Simulate (const modif::ReqSimulate &msg) |
Executes a Simulat. More... | |
virtual void | StopSim (const modif::ReqStopSim &msg) |
Executes a StopSim. More... | |
virtual void | Ignore (const modif::ReqIgnore &msg) |
Executes a Ignore. More... | |
virtual void | StopIgn (const modif::ReqStopIgn &msg) |
Executes a StopIgn. More... | |
virtual void | StartMonitoring () |
Start device monitoring via OPCUA subscriptions. More... | |
virtual void | StopMonitoring () |
Stop device monitoring. More... | |
virtual std::string | GetName () const |
Get device id. More... | |
![]() | |
virtual void | CreateObjects (std::shared_ptr< devmgr::common::IDeviceConfig > config=nullptr)=0 |
Create basic objects needed by the device class. More... | |
virtual void | CreateObjects (std::shared_ptr< devmgr::common::IDeviceConfig > config=nullptr)=0 |
Create basic objects needed by the device class. More... | |
virtual void | CreateObjects (std::shared_ptr< devmgr::common::IDeviceConfig > config=nullptr)=0 |
Create basic objects needed by the device class. More... | |
Additional Inherited Members | |
![]() | |
bool | IsMsgForMe (const std::string &id) const |
Check if received message id is addressed to me. More... | |
void | UpdateDb (std::vector< std::string > attr_vector) |
Update device database. More... | |
void | SetIgnore (bool flag) |
SetIgnore. More... | |
void | SetSimulation (bool flag) |
SetSimulation. More... | |
void | GetPrefix (const std::vector< std::string > prefix_list, std::string &prefix) |
Get prefix for writing attributes to the DB. More... | |
bool | IsMsgForMe (const std::string &id) const |
Check if received message id is addressed to me. More... | |
void | UpdateDb (std::vector< std::string > attr_vector) |
Update device database. More... | |
void | SetIgnore (bool flag) |
SetIgnore. More... | |
void | SetSimulation (bool flag) |
SetSimulation. More... | |
void | GetPrefix (const std::vector< std::string > prefix_list, std::string &prefix) |
Get prefix for writing attributes to the DB. More... | |
bool | IsMsgForMe (const std::string &id) const |
Check if received message id is addressed to me. More... | |
void | UpdateDb (std::vector< std::string > attr_vector) |
Update device database. More... | |
void | SetIgnore (bool flag) |
SetIgnore. More... | |
void | SetSimulation (bool flag) |
SetSimulation. More... | |
void | GetPrefix (const std::vector< std::string > prefix_list, std::string &prefix) |
Get prefix for writing attributes to the DB. More... | |
![]() | |
LampControllerData | m_controller_status |
< object containing the status of the controller More... | |
std::shared_ptr< LampConfig > | m_config |
std::shared_ptr< LampLcsIf > | m_lcs_if |
![]() | |
std::string | m_filename |
device configuration filename. More... | |
std::string | m_name |
device ID. More... | |
DataContext & | m_data_ctx |
reference to the data context object. More... | |
fcf::common::Dispatcher | m_failure |
fcf::common::Dispatcher | m_normal |
std::shared_ptr< DeviceConfig > | m_config |
std::shared_ptr< DeviceLcsIf > | m_lcs_if |
|
inline |
|
inline |