![]() |
C++ Based OPC UA Client/Server/PubSub SDK
1.7.6.537
|
Wrapper class for the UA stack structure OpcUa_DataSetMetaDataType. More...
#include <uadatasetmetadatatype.h>
Public Member Functions | |
UaDataSetMetaDataType () | |
Constructs an instance of the class UaDataSetMetaDataType with empty default values. | |
UaDataSetMetaDataType (const UaDataSetMetaDataType &other) | |
Constructs an instance of the class UaDataSetMetaDataType with values from another UaDataSetMetaDataType object. More... | |
UaDataSetMetaDataType (const OpcUa_DataSetMetaDataType &other) | |
Constructs an instance of the class UaDataSetMetaDataType with values from another OpcUa_DataSetMetaDataType structure. More... | |
UaDataSetMetaDataType (const UaStringArray &namespaces, const UaStructureDescriptions &structureDataTypes, const UaEnumDescriptions &enumDataTypes, const UaSimpleTypeDescriptions &simpleDataTypes, const UaString &name, const UaLocalizedText &description, const UaFieldMetaDatas &fields, const UaGuid &dataSetClassId, const UaConfigurationVersionDataType &configurationVersion) | |
Constructs an instance of the class UaDataSetMetaDataType with values provided in the constructor. | |
UaDataSetMetaDataType (const UaExtensionObject &extensionObject) | |
Constructs an instance of the class UaDataSetMetaDataType initialized with value from a UaExtensionObject. More... | |
UaDataSetMetaDataType (const OpcUa_ExtensionObject &extensionObject) | |
Constructs an instance of the class UaDataSetMetaDataType initialized with value from an OpcUa_ExtensionObject structure. More... | |
~UaDataSetMetaDataType () | |
Destroys the UaDataSetMetaDataType object. | |
void | clear () |
Clear the data of the UaDataSetMetaDataType. More... | |
bool | operator== (const UaDataSetMetaDataType &other) const |
Compare two UaDataSetMetaDataType for equality. More... | |
bool | operator!= (const UaDataSetMetaDataType &other) const |
Compare two UaDataSetMetaDataType for inequality. More... | |
UaDataSetMetaDataType & | operator= (const UaDataSetMetaDataType &other) |
Assignment operator. More... | |
OpcUa_DataSetMetaDataType * | copy () const |
Copy UaDataSetMetaDataType data to a newly allocated OpcUa_DataSetMetaDataType. More... | |
void | copyTo (OpcUa_DataSetMetaDataType *pDst) const |
Copy UaDataSetMetaDataType data to an existing OpcUa_DataSetMetaDataType structure. More... | |
void | attach (OpcUa_DataSetMetaDataType *pValue) |
Attaches to an existing OpcUa_DataSetMetaDataType structure. More... | |
OpcUa_DataSetMetaDataType * | detach (OpcUa_DataSetMetaDataType *pDst) |
Detaches the internal DataSetMetaDataType structure from this class. More... | |
void | getNamespaces (UaStringArray &namespaces) const |
Returns the Namespaces. | |
void | getStructureDataTypes (UaStructureDescriptions &structureDataTypes) const |
Returns the StructureDataTypes. | |
void | getEnumDataTypes (UaEnumDescriptions &enumDataTypes) const |
Returns the EnumDataTypes. | |
void | getSimpleDataTypes (UaSimpleTypeDescriptions &simpleDataTypes) const |
Returns the SimpleDataTypes. | |
UaString | getName () const |
Returns the Name. | |
UaLocalizedText | getDescription () const |
Returns the Description. | |
void | getFields (UaFieldMetaDatas &fields) const |
Returns the Fields. | |
UaGuid | getDataSetClassId () const |
Returns the DataSetClassId. | |
UaConfigurationVersionDataType | getConfigurationVersion () const |
Returns the ConfigurationVersion. | |
void | setNamespaces (const UaStringArray &namespaces) |
Sets the Namespaces. | |
void | setStructureDataTypes (const UaStructureDescriptions &structureDataTypes) |
Sets the StructureDataTypes. | |
void | setEnumDataTypes (const UaEnumDescriptions &enumDataTypes) |
Sets the EnumDataTypes. | |
void | setSimpleDataTypes (const UaSimpleTypeDescriptions &simpleDataTypes) |
Sets the SimpleDataTypes. | |
void | setName (const UaString &name) |
Sets the Name. | |
void | setDescription (const UaLocalizedText &description) |
Sets the Description. | |
void | setFields (const UaFieldMetaDatas &fields) |
Sets the Fields. | |
void | setDataSetClassId (const UaGuid &dataSetClassId) |
Sets the DataSetClassId. | |
void | setConfigurationVersion (const UaConfigurationVersionDataType &configurationVersion) |
Sets the ConfigurationVersion. | |
Static Public Member Functions | |
static OpcUa_DataSetMetaDataType * | clone (const OpcUa_DataSetMetaDataType &source) |
Copy OpcUa_DataSetMetaDataType data to a newly allocated OpcUa_DataSetMetaDataType. More... | |
static void | cloneTo (const OpcUa_DataSetMetaDataType &source, OpcUa_DataSetMetaDataType ©) |
Copy OpcUa_DataSetMetaDataType data to an existing OpcUa_DataSetMetaDataType structure. More... | |
Wrapper class for the UA stack structure OpcUa_DataSetMetaDataType.
This class encapsulates the native OpcUa_DataSetMetaDataType structure and handles memory allocation and cleanup for you. UaDataSetMetaDataType uses implicit sharing to avoid needless copying and to boost the performance. Only if you modify a shared DataSetMetaDataType it creates a copy for that (copy-on-write). So assigning another UaDataSetMetaDataType or passing it as parameter needs constant time and is nearly as fast as assigning a pointer.
UaDataSetMetaDataType::UaDataSetMetaDataType | ( | const UaDataSetMetaDataType & | other | ) |
Constructs an instance of the class UaDataSetMetaDataType with values from another UaDataSetMetaDataType object.
other | the other UaDataSetMetaDataType used to initialize the object |
UaDataSetMetaDataType::UaDataSetMetaDataType | ( | const OpcUa_DataSetMetaDataType & | other | ) |
Constructs an instance of the class UaDataSetMetaDataType with values from another OpcUa_DataSetMetaDataType structure.
other | the other OpcUa_DataSetMetaDataType used to initialize the object |
UaDataSetMetaDataType::UaDataSetMetaDataType | ( | const UaExtensionObject & | extensionObject | ) |
Constructs an instance of the class UaDataSetMetaDataType initialized with value from a UaExtensionObject.
extensionObject | the extension object containing the DataSetMetaDataType |
UaDataSetMetaDataType::UaDataSetMetaDataType | ( | const OpcUa_ExtensionObject & | extensionObject | ) |
Constructs an instance of the class UaDataSetMetaDataType initialized with value from an OpcUa_ExtensionObject structure.
extensionObject | the extension object containing the DataSetMetaDataType |
void UaDataSetMetaDataType::attach | ( | OpcUa_DataSetMetaDataType * | pValue | ) |
Attaches to an existing OpcUa_DataSetMetaDataType structure.
Don't manually free the attached structure afterwards, because UaDataSetMetaDataType is responsible for it now.
pValue | [in] Parameter to attach to. |
void UaDataSetMetaDataType::clear | ( | ) |
Clear the data of the UaDataSetMetaDataType.
|
static |
Copy OpcUa_DataSetMetaDataType data to a newly allocated OpcUa_DataSetMetaDataType.
source | Source to clone. |
|
static |
Copy OpcUa_DataSetMetaDataType data to an existing OpcUa_DataSetMetaDataType structure.
source | the source of the clone operation. |
copy | the destination of the clone operation. |
OpcUa_DataSetMetaDataType * UaDataSetMetaDataType::copy | ( | ) | const |
Copy UaDataSetMetaDataType data to a newly allocated OpcUa_DataSetMetaDataType.
void UaDataSetMetaDataType::copyTo | ( | OpcUa_DataSetMetaDataType * | pDst | ) | const |
Copy UaDataSetMetaDataType data to an existing OpcUa_DataSetMetaDataType structure.
pDst | the destination of this copy operation. |
OpcUa_DataSetMetaDataType * UaDataSetMetaDataType::detach | ( | OpcUa_DataSetMetaDataType * | pDst | ) |
Detaches the internal DataSetMetaDataType structure from this class.
This way you take over the control of freeing the DataSetMetaDataType data. If more than one reference exists, the data is copied to pDst instead of being detached.
pDst | [out] Pointer to an OpcUa_DataSetMetaDataType structure that receives the DataSetMetaDataType data. |
bool UaDataSetMetaDataType::operator!= | ( | const UaDataSetMetaDataType & | other | ) | const |
Compare two UaDataSetMetaDataType for inequality.
other | the UaDataSetMetaDataType to compare with. |
UaDataSetMetaDataType & UaDataSetMetaDataType::operator= | ( | const UaDataSetMetaDataType & | other | ) |
Assignment operator.
other | the UaDataSetMetaDataType to assign. |
bool UaDataSetMetaDataType::operator== | ( | const UaDataSetMetaDataType & | other | ) | const |
Compare two UaDataSetMetaDataType for equality.
other | the UaDataSetMetaDataType to compare with. |