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

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

#include <uabrokerwritergrouptransportdatatype.h>

Public Member Functions

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

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

See also
UaBrokerWriterGroupTransportDataType for information about the encapsulated structure.

Constructor & Destructor Documentation

UaBrokerWriterGroupTransportDataTypes::UaBrokerWriterGroupTransportDataTypes ( const UaBrokerWriterGroupTransportDataTypes other)

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

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

Constructs an instance of the class UaBrokerWriterGroupTransportDataTypes using a raw OpcUa_BrokerWriterGroupTransportDataType array.

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

Member Function Documentation

void UaBrokerWriterGroupTransportDataTypes::attach ( OpcUa_UInt32  length,
OpcUa_BrokerWriterGroupTransportDataType *  data 
)

Attach to a raw OpcUa_BrokerWriterGroupTransportDataType array.

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

Attach to a raw OpcUa_BrokerWriterGroupTransportDataType array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_BrokerWriterGroupTransportDataType * UaBrokerWriterGroupTransportDataTypes::detach ( )

Detach from the internal OpcUa_BrokerWriterGroupTransportDataType 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_BrokerWriterGroupTransportDataType array
bool UaBrokerWriterGroupTransportDataTypes::operator!= ( const UaBrokerWriterGroupTransportDataTypes other) const

Compare two UaBrokerWriterGroupTransportDataTypes.

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

Assignment operator.

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

Compare two UaBrokerWriterGroupTransportDataTypes.

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

Index operator.

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

Index operator.

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