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

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

#include <uabrokerconnectiontransportdatatype.h>

Public Member Functions

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

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

See also
UaBrokerConnectionTransportDataType for information about the encapsulated structure.

Constructor & Destructor Documentation

UaBrokerConnectionTransportDataTypes::UaBrokerConnectionTransportDataTypes ( const UaBrokerConnectionTransportDataTypes other)

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

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

Constructs an instance of the class UaBrokerConnectionTransportDataTypes using a raw OpcUa_BrokerConnectionTransportDataType array.

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

Member Function Documentation

void UaBrokerConnectionTransportDataTypes::attach ( OpcUa_UInt32  length,
OpcUa_BrokerConnectionTransportDataType *  data 
)

Attach to a raw OpcUa_BrokerConnectionTransportDataType array.

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

Attach to a raw OpcUa_BrokerConnectionTransportDataType array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_BrokerConnectionTransportDataType * UaBrokerConnectionTransportDataTypes::detach ( )

Detach from the internal OpcUa_BrokerConnectionTransportDataType 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_BrokerConnectionTransportDataType array
bool UaBrokerConnectionTransportDataTypes::operator!= ( const UaBrokerConnectionTransportDataTypes other) const

Compare two UaBrokerConnectionTransportDataTypes.

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

Assignment operator.

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

Compare two UaBrokerConnectionTransportDataTypes.

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

Index operator.

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

Index operator.

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