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

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

#include <uadatasetreaderdatatype.h>

Public Member Functions

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

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

See also
UaDataSetReaderDataType for information about the encapsulated structure.

Constructor & Destructor Documentation

UaDataSetReaderDataTypes::UaDataSetReaderDataTypes ( const UaDataSetReaderDataTypes other)

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

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

Constructs an instance of the class UaDataSetReaderDataTypes using a raw OpcUa_DataSetReaderDataType array.

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

Member Function Documentation

void UaDataSetReaderDataTypes::attach ( OpcUa_UInt32  length,
OpcUa_DataSetReaderDataType *  data 
)

Attach to a raw OpcUa_DataSetReaderDataType array.

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

Attach to a raw OpcUa_DataSetReaderDataType array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_DataSetReaderDataType * UaDataSetReaderDataTypes::detach ( )

Detach from the internal OpcUa_DataSetReaderDataType 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_DataSetReaderDataType array
bool UaDataSetReaderDataTypes::operator!= ( const UaDataSetReaderDataTypes other) const

Compare two UaDataSetReaderDataTypes.

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

Assignment operator.

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

Compare two UaDataSetReaderDataTypes.

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

Index operator.

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

Index operator.

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