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

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

#include <uauadpdatasetwritermessagedatatype.h>

Public Member Functions

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

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

See also
UaUadpDataSetWriterMessageDataType for information about the encapsulated structure.

Constructor & Destructor Documentation

UaUadpDataSetWriterMessageDataTypes::UaUadpDataSetWriterMessageDataTypes ( const UaUadpDataSetWriterMessageDataTypes other)

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

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

Constructs an instance of the class UaUadpDataSetWriterMessageDataTypes using a raw OpcUa_UadpDataSetWriterMessageDataType array.

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

Member Function Documentation

void UaUadpDataSetWriterMessageDataTypes::attach ( OpcUa_UInt32  length,
OpcUa_UadpDataSetWriterMessageDataType *  data 
)

Attach to a raw OpcUa_UadpDataSetWriterMessageDataType array.

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

Attach to a raw OpcUa_UadpDataSetWriterMessageDataType array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_UadpDataSetWriterMessageDataType * UaUadpDataSetWriterMessageDataTypes::detach ( )

Detach from the internal OpcUa_UadpDataSetWriterMessageDataType 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_UadpDataSetWriterMessageDataType array
bool UaUadpDataSetWriterMessageDataTypes::operator!= ( const UaUadpDataSetWriterMessageDataTypes other) const

Compare two UaUadpDataSetWriterMessageDataTypes.

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

Assignment operator.

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

Compare two UaUadpDataSetWriterMessageDataTypes.

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

Index operator.

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

Index operator.

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