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

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

#include <uauadpwritergroupmessagedatatype.h>

Public Member Functions

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

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

See also
UaUadpWriterGroupMessageDataType for information about the encapsulated structure.

Constructor & Destructor Documentation

UaUadpWriterGroupMessageDataTypes::UaUadpWriterGroupMessageDataTypes ( const UaUadpWriterGroupMessageDataTypes other)

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

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

Constructs an instance of the class UaUadpWriterGroupMessageDataTypes using a raw OpcUa_UadpWriterGroupMessageDataType array.

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

Member Function Documentation

void UaUadpWriterGroupMessageDataTypes::attach ( OpcUa_UInt32  length,
OpcUa_UadpWriterGroupMessageDataType *  data 
)

Attach to a raw OpcUa_UadpWriterGroupMessageDataType array.

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

Attach to a raw OpcUa_UadpWriterGroupMessageDataType array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_UadpWriterGroupMessageDataType * UaUadpWriterGroupMessageDataTypes::detach ( )

Detach from the internal OpcUa_UadpWriterGroupMessageDataType 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_UadpWriterGroupMessageDataType array
bool UaUadpWriterGroupMessageDataTypes::operator!= ( const UaUadpWriterGroupMessageDataTypes other) const

Compare two UaUadpWriterGroupMessageDataTypes.

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

Assignment operator.

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

Compare two UaUadpWriterGroupMessageDataTypes.

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

Index operator.

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

Index operator.

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