OpcUaCanOpen
CANopen OPC-UA server
UserDevice::DEVICE< T, P > Class Template Reference

DEVICE class is a template to create an object to control hardware device. More...

#include <AbstractHardware.h>

Inherits UserDevice::AbstractHardware.

Public Member Functions

 DEVICE ()
 
 ~DEVICE ()
 
InterfaceUserDataBasecreateHardwareEntry (pUserDeviceStruct *parent, ::xsd::cxx::tree::type *conf, UaNode *blink, int code)
 The function create an object of type T. More...
 
- Public Member Functions inherited from UserDevice::AbstractHardware
 AbstractHardware ()
 

Detailed Description

template<class T, class P>
class UserDevice::DEVICE< T, P >

DEVICE class is a template to create an object to control hardware device.

Template Parameters
Tis a parameter means the class of created object
Pis a parameter represents of the type XML information The DEVICE class defines the abstract function inheriting from AbstarctHardware class. DEVICE class is to create an abject which take care about type of hardware.

Definition at line 38 of file AbstractHardware.h.

Constructor & Destructor Documentation

◆ DEVICE()

template<class T, class P>
UserDevice::DEVICE< T, P >::DEVICE ( )
inline

Definition at line 40 of file AbstractHardware.h.

◆ ~DEVICE()

template<class T, class P>
UserDevice::DEVICE< T, P >::~DEVICE ( )
inline

Definition at line 41 of file AbstractHardware.h.

Member Function Documentation

◆ createHardwareEntry()

template<class T, class P>
InterfaceUserDataBase* UserDevice::DEVICE< T, P >::createHardwareEntry ( pUserDeviceStruct parent,
::xsd::cxx::tree::type *  conf,
UaNode *  blink,
int  code 
)
inlinevirtual

The function create an object of type T.

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 of created object (null means an error)

Implements UserDevice::AbstractHardware.

Definition at line 51 of file AbstractHardware.h.


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