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

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

#include <uabrokerdatasetwritertransportdatatype.h>

Public Member Functions

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

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

See also
UaBrokerDataSetWriterTransportDataType for information about the encapsulated structure.

Constructor & Destructor Documentation

UaBrokerDataSetWriterTransportDataTypes::UaBrokerDataSetWriterTransportDataTypes ( const UaBrokerDataSetWriterTransportDataTypes other)

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

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

Constructs an instance of the class UaBrokerDataSetWriterTransportDataTypes using a raw OpcUa_BrokerDataSetWriterTransportDataType array.

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

Member Function Documentation

void UaBrokerDataSetWriterTransportDataTypes::attach ( OpcUa_UInt32  length,
OpcUa_BrokerDataSetWriterTransportDataType *  data 
)

Attach to a raw OpcUa_BrokerDataSetWriterTransportDataType array.

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

Attach to a raw OpcUa_BrokerDataSetWriterTransportDataType array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_BrokerDataSetWriterTransportDataType * UaBrokerDataSetWriterTransportDataTypes::detach ( )

Detach from the internal OpcUa_BrokerDataSetWriterTransportDataType 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_BrokerDataSetWriterTransportDataType array
bool UaBrokerDataSetWriterTransportDataTypes::operator!= ( const UaBrokerDataSetWriterTransportDataTypes other) const

Compare two UaBrokerDataSetWriterTransportDataTypes.

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

Assignment operator.

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

Compare two UaBrokerDataSetWriterTransportDataTypes.

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

Index operator.

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

Index operator.

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