OpcUaCanOpen
CANopen OPC-UA server
AddressSpace::UaControlNode Class Reference

Generic class type to create UaNode based on type information and create connection to hardware objects. More...

#include <UaControlNode.h>

Public Member Functions

 UaControlNode ()
 
virtual ~UaControlNode (void)
 
template<class T >
UaStatus UaControlNodeCreateByType (T *cur, UaNode *instance, NmBuildingAutomation *pNodeManager,::xml_schema::type *conf, UserDataBase *interf)
 

Static Public Member Functions

template<class T >
static UaStatus UaControlNodeCreateByType (T *cur, UaNode *instance, NmBuildingAutomation *pNodeManager, ::xml_schema::type *conf, pUserDeviceStruct *interf, UaMutexRefCounted *m)
 this function creates recursively the object tree based on type object More...
 

Detailed Description

Generic class type to create UaNode based on type information and create connection to hardware objects.

The type information of system object can be represented as a UaNode graph.
Each node connects to another node via reference. In OPC Ua several reference type is defined.

  • OpcUaId_HasSubtype describes an inheritance.
  • OpcUaId_HasComponent - aggregation

The type information are created by node manager method afterStartUp. Actually when creates the object based on type information the tree of objects is created.

Definition at line 27 of file UaControlNode.h.

Constructor & Destructor Documentation

◆ UaControlNode()

AddressSpace::UaControlNode::UaControlNode ( )
inline

Definition at line 33 of file UaControlNode.h.

◆ ~UaControlNode()

virtual AddressSpace::UaControlNode::~UaControlNode ( void  )
inlinevirtual

Definition at line 34 of file UaControlNode.h.

Member Function Documentation

◆ UaControlNodeCreateByType() [1/2]

template<class T >
UaStatus AddressSpace::UaControlNode::UaControlNodeCreateByType ( T *  cur,
UaNode *  instance,
NmBuildingAutomation pNodeManager,
::xml_schema::type conf,
UserDataBase *  interf 
)

Definition at line 11 of file UaControlNode.cpp.

◆ UaControlNodeCreateByType() [2/2]

template<class T >
static UaStatus AddressSpace::UaControlNode::UaControlNodeCreateByType ( T *  cur,
UaNode *  instance,
NmBuildingAutomation pNodeManager,
::xml_schema::type conf,
pUserDeviceStruct interf,
UaMutexRefCounted *  m 
)
inlinestatic

this function creates recursively the object tree based on type object

Parameters
curparent ua node
instancepointer to type node
pNodeManagernode manager object
confXML description of object created
interfpointer to parent hardware object
Returns
the object describe the result (good or not)

Definition at line 45 of file UaControlNode.h.


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