OpcUaCanOpen
CANopen OPC-UA server
UserDevice::AbstractHardware Class Referenceabstract

Basic abstract class to create hardware structure. More...

#include <AbstractHardware.h>

Inherited by UserDevice::DEVICE< T, P >.

Public Member Functions

 AbstractHardware ()
 
virtual InterfaceUserDataBasecreateHardwareEntry (pUserDeviceStruct *parent, ::xsd::cxx::tree::type *conf, UaNode *blink, int code)=0
 Create an object representing part of the hardware. More...
 

Detailed Description

Basic abstract class to create hardware structure.

AbstracHardware class has only one abstract function to create an object representing hardware part and return the pointer on it.

Definition at line 13 of file AbstractHardware.h.

Constructor & Destructor Documentation

◆ AbstractHardware()

UserDevice::AbstractHardware::AbstractHardware ( )
inline

Definition at line 16 of file AbstractHardware.h.

Member Function Documentation

◆ createHardwareEntry()

virtual InterfaceUserDataBase* UserDevice::AbstractHardware::createHardwareEntry ( pUserDeviceStruct parent,
::xsd::cxx::tree::type *  conf,
UaNode *  blink,
int  code 
)
pure virtual

Create an object representing part of the hardware.

This function ensure a link between OpcUa Address space node (object or variable) and hardware object to execute the command , take data, write data

Parameters
parentthe object representing the parent part of hardware
confXML object containing the configuration information for this object
blinkOpcUa node using information from this user object
code- function code of operation
Returns
the pointer on created object (null means an error)

Implemented in UserDevice::DEVICE< T, P >.


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