C++ Based OPC UA Client/Server/PubSub SDK  1.7.6.537
UaUadpDataSetReaderMessageDataTypes Class Reference

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

#include <uauadpdatasetreadermessagedatatype.h>

Public Member Functions

 UaUadpDataSetReaderMessageDataTypes ()
 Constructs an empty instance of the class UaUadpDataSetReaderMessageDataTypes.
 
 UaUadpDataSetReaderMessageDataTypes (const UaUadpDataSetReaderMessageDataTypes &other)
 Constructs an instance of the class UaUadpDataSetReaderMessageDataTypes with values from another UaUadpDataSetReaderMessageDataTypes object. More...
 
 UaUadpDataSetReaderMessageDataTypes (OpcUa_Int32 length, OpcUa_UadpDataSetReaderMessageDataType *data)
 Constructs an instance of the class UaUadpDataSetReaderMessageDataTypes using a raw OpcUa_UadpDataSetReaderMessageDataType array. More...
 
virtual ~UaUadpDataSetReaderMessageDataTypes ()
 Destroys the UaUadpDataSetReaderMessageDataTypes object.
 
UaUadpDataSetReaderMessageDataTypesoperator= (const UaUadpDataSetReaderMessageDataTypes &other)
 Assignment operator. More...
 
const
OpcUa_UadpDataSetReaderMessageDataType & 
operator[] (OpcUa_UInt32 index) const
 Index operator. More...
 
OpcUa_UadpDataSetReaderMessageDataType & operator[] (OpcUa_UInt32 index)
 Index operator. More...
 
bool operator== (const UaUadpDataSetReaderMessageDataTypes &other) const
 Compare two UaUadpDataSetReaderMessageDataTypes. More...
 
bool operator!= (const UaUadpDataSetReaderMessageDataTypes &other) const
 Compare two UaUadpDataSetReaderMessageDataTypes. More...
 
void attach (OpcUa_UInt32 length, OpcUa_UadpDataSetReaderMessageDataType *data)
 Attach to a raw OpcUa_UadpDataSetReaderMessageDataType array. More...
 
void attach (OpcUa_Int32 length, OpcUa_UadpDataSetReaderMessageDataType *data)
 Attach to a raw OpcUa_UadpDataSetReaderMessageDataType array. More...
 
OpcUa_UadpDataSetReaderMessageDataType * detach ()
 Detach from the internal OpcUa_UadpDataSetReaderMessageDataType 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_UadpDataSetReaderMessageDataType.

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

See also
UaUadpDataSetReaderMessageDataType for information about the encapsulated structure.

Constructor & Destructor Documentation

UaUadpDataSetReaderMessageDataTypes::UaUadpDataSetReaderMessageDataTypes ( const UaUadpDataSetReaderMessageDataTypes other)

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

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

Constructs an instance of the class UaUadpDataSetReaderMessageDataTypes using a raw OpcUa_UadpDataSetReaderMessageDataType array.

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

Member Function Documentation

void UaUadpDataSetReaderMessageDataTypes::attach ( OpcUa_UInt32  length,
OpcUa_UadpDataSetReaderMessageDataType *  data 
)

Attach to a raw OpcUa_UadpDataSetReaderMessageDataType array.

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

Attach to a raw OpcUa_UadpDataSetReaderMessageDataType array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_UadpDataSetReaderMessageDataType * UaUadpDataSetReaderMessageDataTypes::detach ( )

Detach from the internal OpcUa_UadpDataSetReaderMessageDataType 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_UadpDataSetReaderMessageDataType array
bool UaUadpDataSetReaderMessageDataTypes::operator!= ( const UaUadpDataSetReaderMessageDataTypes other) const

Compare two UaUadpDataSetReaderMessageDataTypes.

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

Assignment operator.

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

Compare two UaUadpDataSetReaderMessageDataTypes.

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

Index operator.

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

Index operator.

Parameters
indexthe index of the structure to return.
void UaUadpDataSetReaderMessageDataTypes::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: