C++ Based OPC UA Client/Server/PubSub SDK  1.7.6.537

Array class for the UA stack structure OpcUa_DataSetMetaDataType. More...

#include <uadatasetmetadatatype.h>

Public Member Functions

 UaDataSetMetaDataTypes ()
 Constructs an empty instance of the class UaDataSetMetaDataTypes.
 
 UaDataSetMetaDataTypes (const UaDataSetMetaDataTypes &other)
 Constructs an instance of the class UaDataSetMetaDataTypes with values from another UaDataSetMetaDataTypes object. More...
 
 UaDataSetMetaDataTypes (OpcUa_Int32 length, OpcUa_DataSetMetaDataType *data)
 Constructs an instance of the class UaDataSetMetaDataTypes using a raw OpcUa_DataSetMetaDataType array. More...
 
virtual ~UaDataSetMetaDataTypes ()
 Destroys the UaDataSetMetaDataTypes object.
 
UaDataSetMetaDataTypesoperator= (const UaDataSetMetaDataTypes &other)
 Assignment operator. More...
 
const OpcUa_DataSetMetaDataType & operator[] (OpcUa_UInt32 index) const
 Index operator. More...
 
OpcUa_DataSetMetaDataType & operator[] (OpcUa_UInt32 index)
 Index operator. More...
 
bool operator== (const UaDataSetMetaDataTypes &other) const
 Compare two UaDataSetMetaDataTypes. More...
 
bool operator!= (const UaDataSetMetaDataTypes &other) const
 Compare two UaDataSetMetaDataTypes. More...
 
void attach (OpcUa_UInt32 length, OpcUa_DataSetMetaDataType *data)
 Attach to a raw OpcUa_DataSetMetaDataType array. More...
 
void attach (OpcUa_Int32 length, OpcUa_DataSetMetaDataType *data)
 Attach to a raw OpcUa_DataSetMetaDataType array. More...
 
OpcUa_DataSetMetaDataType * detach ()
 Detach from the internal OpcUa_DataSetMetaDataType array. More...
 
void create (OpcUa_UInt32 length)
 Clears the array and resizes to the given length. More...
 
void resize (OpcUa_UInt32 length)
 Resizes the array to a given length. More...
 
void clear ()
 Clears the array.
 

Detailed Description

Array class for the UA stack structure OpcUa_DataSetMetaDataType.

This class encapsulates an array of the native OpcUa_DataSetMetaDataType structure and handles memory allocation and cleanup for you.

See also
UaDataSetMetaDataType for information about the encapsulated structure.

Constructor & Destructor Documentation

UaDataSetMetaDataTypes::UaDataSetMetaDataTypes ( const UaDataSetMetaDataTypes other)

Constructs an instance of the class UaDataSetMetaDataTypes with values from another UaDataSetMetaDataTypes object.

Parameters
otherthe other UaDataSetMetaDataTypes used to initialize the object
UaDataSetMetaDataTypes::UaDataSetMetaDataTypes ( OpcUa_Int32  length,
OpcUa_DataSetMetaDataType *  data 
)

Constructs an instance of the class UaDataSetMetaDataTypes using a raw OpcUa_DataSetMetaDataType array.

Parameters
lengththe length of the raw OpcUa_DataSetMetaDataType array
datathe raw OpcUa_DataSetMetaDataType array

Member Function Documentation

void UaDataSetMetaDataTypes::attach ( OpcUa_UInt32  length,
OpcUa_DataSetMetaDataType *  data 
)

Attach to a raw OpcUa_DataSetMetaDataType array.

Note
Don't manually free the attached data afterwards, because UaDataSetMetaDataTypes is responsible for it now.
Parameters
lengththe length of the raw OpcUa_DataSetMetaDataType array
datathe raw OpcUa_DataSetMetaDataType array
void UaDataSetMetaDataTypes::attach ( OpcUa_Int32  length,
OpcUa_DataSetMetaDataType *  data 
)

Attach to a raw OpcUa_DataSetMetaDataType array.

Note
Don't manually free the attached data afterwards, because UaDataSetMetaDataTypes is responsible for it now.
Parameters
lengththe length of the raw OpcUa_DataSetMetaDataType array
datathe raw OpcUa_DataSetMetaDataType array
void UaDataSetMetaDataTypes::create ( OpcUa_UInt32  length)

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_DataSetMetaDataType * UaDataSetMetaDataTypes::detach ( )

Detach from the internal OpcUa_DataSetMetaDataType array.

After detaching, the detached array data will not be cleared automatically anymore.

Note
Remember to retrieve the length of the array before detaching.
Returns
the detached OpcUa_DataSetMetaDataType array
bool UaDataSetMetaDataTypes::operator!= ( const UaDataSetMetaDataTypes other) const

Compare two UaDataSetMetaDataTypes.

See also
operator==
Parameters
otherthe UaDataSetMetaDataTypes to compare with.
Returns
true if not equal, false otherwise.
UaDataSetMetaDataTypes & UaDataSetMetaDataTypes::operator= ( const UaDataSetMetaDataTypes other)

Assignment operator.

Parameters
otherthe UaDataSetMetaDataTypes to assign.
bool UaDataSetMetaDataTypes::operator== ( const UaDataSetMetaDataTypes other) const

Compare two UaDataSetMetaDataTypes.

Parameters
otherthe UaDataSetMetaDataTypes to compare with.
Returns
true if equal, false if not.
const OpcUa_DataSetMetaDataType & UaDataSetMetaDataTypes::operator[] ( OpcUa_UInt32  index) const

Index operator.

Parameters
indexthe index of the structure to return.
OpcUa_DataSetMetaDataType & UaDataSetMetaDataTypes::operator[] ( OpcUa_UInt32  index)

Index operator.

Parameters
indexthe index of the structure to return.
void UaDataSetMetaDataTypes::resize ( OpcUa_UInt32  length)

Resizes the array to a given length.

Parameters
lengththe new length of the array

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