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

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

#include <uadatagramwritergrouptransportdatatype.h>

Public Member Functions

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

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

See also
UaDatagramWriterGroupTransportDataType for information about the encapsulated structure.

Constructor & Destructor Documentation

UaDatagramWriterGroupTransportDataTypes::UaDatagramWriterGroupTransportDataTypes ( const UaDatagramWriterGroupTransportDataTypes other)

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

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

Constructs an instance of the class UaDatagramWriterGroupTransportDataTypes using a raw OpcUa_DatagramWriterGroupTransportDataType array.

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

Member Function Documentation

void UaDatagramWriterGroupTransportDataTypes::attach ( OpcUa_UInt32  length,
OpcUa_DatagramWriterGroupTransportDataType *  data 
)

Attach to a raw OpcUa_DatagramWriterGroupTransportDataType array.

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

Attach to a raw OpcUa_DatagramWriterGroupTransportDataType array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_DatagramWriterGroupTransportDataType * UaDatagramWriterGroupTransportDataTypes::detach ( )

Detach from the internal OpcUa_DatagramWriterGroupTransportDataType 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_DatagramWriterGroupTransportDataType array
bool UaDatagramWriterGroupTransportDataTypes::operator!= ( const UaDatagramWriterGroupTransportDataTypes other) const

Compare two UaDatagramWriterGroupTransportDataTypes.

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

Assignment operator.

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

Compare two UaDatagramWriterGroupTransportDataTypes.

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

Index operator.

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

Index operator.

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