ifw-fcf  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
testAdc::MyAdc Class Reference

Test adc class used for testing purposes. More...

Inheritance diagram for testAdc::MyAdc:
fcf::devmgr::adc::Adc fcf::devmgr::common::Device fcf::devmgr::common::IDevice

Public Member Functions

 MyAdc (const std::string &filename, const std::string &name, fcf::devmgr::common::DataContext &data_ctx)
 
void CreateObjects (std::shared_ptr< fcf::devmgr::common::IDeviceConfig > config)
 
- Public Member Functions inherited from fcf::devmgr::adc::Adc
 Adc (const std::string &filename, const std::string &name, devmgr::common::DataContext &data_ctx)
 Adc constructor. More...
 
virtual ~Adc ()
 Default destructor. More...
 
void CreateObjects (std::shared_ptr< devmgr::common::IDeviceConfig > config=nullptr) override
 Create object instances. More...
 
void RegisterComm (std::shared_ptr< fcf::common::IComm > comm_if, fcf::common::Dispatcher<> &failure, fcf::common::Dispatcher<> &normal) override
 Register a communication interface object. More...
 
virtual void Setup (const std::any &payload) override
 Executes a setup of the adc device. More...
 
virtual bool IsSetupActive (const std::any &payload) const override
 Check if last setup message is still active. More...
 
void SetTargetNamedPosition (const std::string named_position)
 
const std::string GetTargetNamedPosition ()
 
virtual void Status (const std::any &payload, std::string &buffer) override
 Obtain the status of the device. More...
 
virtual void Status (bool end_acq, const dit::did::Did &dictionary, std::shared_ptr< CCfits::FITS > &fits_handle)
 Obtain the status of the device. More...
 
virtual void UpdateStatus () override
 Update the status of the Adc device in the OLDB. More...
 
virtual std::shared_ptr
< devmgr::common::DeviceLcsIf
GetLcsIf () const override
 
virtual std::shared_ptr
< devmgr::common::IDeviceConfig
GetConfig () const override
 Get a pointer of device configuration. More...
 
- Public Member Functions inherited from fcf::devmgr::common::Device
 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 override
 Check if device is Standby/NotReady. More...
 
virtual bool IsReady () const override
 Check if device is Standby/Ready. More...
 
virtual bool IsOperational () const override
 Check if device is Operational. More...
 
virtual void CheckHwFailure () const override
 Check if device is in failure state. More...
 
virtual bool IsDisabling () const override
 Check if device is disablig. More...
 
virtual void Init () override
 Executes a Init command. More...
 
virtual void Enable () override
 Executes a Enable command. More...
 
virtual void Disable () override
 Executes a Disable command. More...
 
virtual void Stop () override
 Executes a Stop command. More...
 
virtual void Reset () override
 Executes a Reset command. More...
 
void Status (DeviceControllerData *data, std::string &buffer)
 
virtual void Status (const std::string prefix, const dit::did::Did &dictionary, std::shared_ptr< CCfits::FITS > &fits_handle)
 Obtain the status of the device. More...
 
virtual void Simulate (rad::AnyEvent const &last_event) override
 Executes a Simulat. More...
 
virtual void StopSim (rad::AnyEvent const &last_event) override
 Executes a StopSim. More...
 
virtual void Ignore (rad::AnyEvent const &last_event) override
 Executes a Ignore. More...
 
virtual void StopIgn (rad::AnyEvent const &last_event) override
 Executes a StopIgn. More...
 
virtual void HwReset (rad::AnyEvent const &last_event) override
 Executes a hardware reset command. More...
 
virtual void HwInit (rad::AnyEvent const &last_event) override
 Executes a hardware init command. More...
 
virtual void HwEnable (rad::AnyEvent const &last_event) override
 Executes a hardware enable command. More...
 
virtual void HwDisable (rad::AnyEvent const &last_event) override
 Executes a hardware disable command. More...
 
virtual void StartMonitoring () override
 Start device monitoring via OPCUA subscriptions. More...
 
virtual void StopMonitoring () override
 Stop device monitoring. More...
 
virtual std::string GetName () const override
 Get device id. More...
 
- Public Member Functions inherited from fcf::devmgr::common::IDevice
virtual void CreateObjects (std::shared_ptr< fcf::devmgr::common::IDeviceConfig > config=nullptr)=0
 Create basic objects needed by the device class. More...
 

Additional Inherited Members

- Protected Member Functions inherited from fcf::devmgr::common::Device
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 CheckNameParam (const std::any &payload)
 Determine whether paramater is included (device name). More...
 
- Protected Attributes inherited from fcf::devmgr::adc::Adc
AdcControllerData m_controller_status
 < object containing the status of the controller More...
 
std::string m_target_named_pos
 
std::shared_ptr< AdcConfigm_config
 pointer to device config object More...
 
std::shared_ptr< AdcLcsIf
< fcfif::AdcTopicUnion > > 
m_lcs_if
 pointer to device lcs interface object More...
 
- Protected Attributes inherited from fcf::devmgr::common::Device
std::string m_filename
 device configuration filename. More...
 
std::string m_name
 device ID. More...
 
DataContextm_data_ctx
 reference to the data context object. More...
 
fcf::common::Dispatcher m_failure
 Dispatcher for managing failures. More...
 
fcf::common::Dispatcher m_normal
 Dispatcher for managing positive events. More...
 
std::shared_ptr< DeviceConfigm_config
 Pointer to configuration object. More...
 
std::shared_ptr< DeviceLcsIfm_lcs_if
 Local Control System Interface. More...
 

Detailed Description

Test adc class used for testing purposes.

Constructor & Destructor Documentation

testAdc::MyAdc::MyAdc ( const std::string &  filename,
const std::string &  name,
fcf::devmgr::common::DataContext data_ctx 
)
inline

Member Function Documentation

void testAdc::MyAdc::CreateObjects ( std::shared_ptr< fcf::devmgr::common::IDeviceConfig config)
inline

The documentation for this class was generated from the following file: