OpcUaCanOpen
CANopen OPC-UA server
UaControlDeviceProperty.cpp
Go to the documentation of this file.
1
#include "
UaControlDeviceProperty.h
"
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,
12
::
xml_schema::type
*
conf
,
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
28
UaControlDeviceProperty::~UaControlDeviceProperty
()
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
}
AddressSpace
src
UaControlDeviceProperty.cpp
Generated on Fri Sep 11 2020 14:29:42 for OpcUaCanOpen by
1.8.14