C++ Based OPC UA Client/Server/PubSub SDK  1.7.6.537

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

#include <uareadergroupdatatype.h>

Public Member Functions

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

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

See also
UaReaderGroupDataType for information about the encapsulated structure.

Constructor & Destructor Documentation

UaReaderGroupDataTypes::UaReaderGroupDataTypes ( const UaReaderGroupDataTypes other)

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

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

Constructs an instance of the class UaReaderGroupDataTypes using a raw OpcUa_ReaderGroupDataType array.

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

Member Function Documentation

void UaReaderGroupDataTypes::attach ( OpcUa_UInt32  length,
OpcUa_ReaderGroupDataType *  data 
)

Attach to a raw OpcUa_ReaderGroupDataType array.

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

Attach to a raw OpcUa_ReaderGroupDataType array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_ReaderGroupDataType * UaReaderGroupDataTypes::detach ( )

Detach from the internal OpcUa_ReaderGroupDataType 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_ReaderGroupDataType array
bool UaReaderGroupDataTypes::operator!= ( const UaReaderGroupDataTypes other) const

Compare two UaReaderGroupDataTypes.

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

Assignment operator.

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

Compare two UaReaderGroupDataTypes.

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

Index operator.

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

Index operator.

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