pds 2.1.0-alpha
Loading...
Searching...
No Matches
Public Member Functions | List of all members
pds::maical::devices::Lsm Class Reference

The Lsm class. More...

#include <lsm.hpp>

Inheritance diagram for pds::maical::devices::Lsm:

Public Member Functions

 Lsm (const std::string &filename, const std::string &name, ifw::fcf::devmgr::common::DataContext &data_ctx)
 
virtual ~Lsm ()=default
 DeviceConfig destructor.
 
void CreateObjects (std::shared_ptr< ifw::fcf::devmgr::common::IDeviceConfig > config=nullptr) override
 Create object instances.
 
virtual void Setup (const std::any &payload) override
 Executes a setup of the PSU8600 device.
 
void GetStatusBuffer (const std::string &stat_prefix, const LsmControllerData *const data, std::string &buffer)
 
void Status (const std::any &payload, std::string &buffer)
 
void UpdateStatus () override
 

Detailed Description

The Lsm class.

This class handles the behaviour of a generic Lsm device.

The Lsm class have two auxiliary objects. One for managing the device configuration and the other one for managing the connection to the device controller running in the Local Control System (LCS). These two objects are created by a dedicated method. These objects inherits basic behaviours from their parent classes.

See also
LampConfig
LampLcsIf
Lamp

Constructor & Destructor Documentation

◆ Lsm()

pds::maical::devices::Lsm::Lsm ( const std::string & filename,
const std::string & name,
ifw::fcf::devmgr::common::DataContext & data_ctx )

◆ ~Lsm()

virtual pds::maical::devices::Lsm::~Lsm ( )
virtualdefault

DeviceConfig destructor.

Member Function Documentation

◆ CreateObjects()

void pds::maical::devices::Lsm::CreateObjects ( std::shared_ptr< ifw::fcf::devmgr::common::IDeviceConfig > config = nullptr)
override

Create object instances.

Parameters
configShared pointer to a device config object

This method creates the instances of the device configuration and LCS interface objects that are needed by the device. It can override the type of the configuration by passing a parameter otherwise it will use the default Config class.

◆ GetStatusBuffer()

void pds::maical::devices::Lsm::GetStatusBuffer ( const std::string & stat_prefix,
const LsmControllerData *const data,
std::string & buffer )

◆ Setup()

void pds::maical::devices::Lsm::Setup ( const std::any & payload)
overridevirtual

Executes a setup of the PSU8600 device.

Parameters
[in]payloadcontains the payload of the setup message.
Exceptions
anexception if an error ocurrs.

◆ Status()

void pds::maical::devices::Lsm::Status ( const std::any & payload,
std::string & buffer )

◆ UpdateStatus()

void pds::maical::devices::Lsm::UpdateStatus ( )
override

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