OpcUaCanOpen
CANopen OPC-UA server
UaControlDeviceProperty.cpp
Go to the documentation of this file.
2 #include "NmBuildingAutomation.h"
3 using namespace UserDevice;
4 
5 namespace AddressSpace
6 {
7  UaControlDeviceProperty::
8  UaControlDeviceProperty(
9  UaNode *cur,
10  NmBuildingAutomation* pNodeManager,
11  UaVariable *instance,
13  InterfaceUserDataBase* interf,
14  UaMutexRefCounted* pSharedMutex
15  ) : OpcUa::PropertyType(cur, instance, pNodeManager, pSharedMutex)
16  {
17  UaNodeId nodeTypeId = instance->dataType();
18  UaNodeId nodeId = instance->nodeId();
19  setDataType(nodeTypeId);
20 
21  //InterfaceUserDataBase* pCanInter = pNodeManager->m_pControlInterface->createInterfaceEntry(interf, nodeId.identifierNumeric(), conf, this);
22  //setUserData(pCanInter);
23  //if (pCanInter)
24  // pCanInter->addReference();
25 
26  }
27 
29  {
30  // InterfaceUserDataBase * iudb = static_cast<InterfaceUserDataBase*>(getUserData());
31 
32  // if (iudb) {
33  // iudb->releaseMutex();
34  // if (iudb->countMutex() == 0)
35  // delete iudb;
36  // setUserData(0);
37  // }
38  }
39 }