I am trying to construct UaExtensionObject that carries OpcUa_ModelChangeStructureDataType, but there doesn't seem to be any suitable method. Only UaArgument, UaRange, UaEUInformation, UaBuildInfo, UaServerStatusDataType, UaAnnotation are supported.
I can construct the C equivalent OpcUa_ExtensionObject with the following code:
Code: Select all
OpcUa_ExtensionObject* pExtObj;
OpcUa_ExtensionObject_Create( &pExtObj );
OpcUa_ModelChangeStructureDataType* pChanges = (OpcUa_ModelChangeStructureDataType*)OpcUa_Null;
OpcUa_EncodeableObject_CreateExtension( &OpcUa_ModelChangeStructureDataType_EncodeableType,
pExtObj,
(OpcUa_Void**)&pChanges);
But it cannot be converted to c++, not even with the constructor UaExtensionObject(const OpcUa_ExtensionObject &other);
Thanks