C++ Based OPC UA Client/Server SDK  1.5.5.355

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

#include <uaarraytemplates.h>

Public Member Functions

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

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

Constructor & Destructor Documentation

UaQueryDataSets::UaQueryDataSets ( const UaQueryDataSets other)

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

Parameters
otherthe other QueryDataSets used to initialize the object
UaQueryDataSets::UaQueryDataSets ( OpcUa_Int32  length,
OpcUa_QueryDataSet *  data 
)

Constructs an instance of the class UaQueryDataSet using a raw OpcUa_QueryDataSet array.

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

Member Function Documentation

void UaQueryDataSets::attach ( OpcUa_UInt32  length,
OpcUa_QueryDataSet *  data 
)

Attach to a raw OpcUa_QueryDataSet array.

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

Attach to a raw OpcUa_QueryDataSet array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_QueryDataSet * UaQueryDataSets::detach ( )

Detach from the internal OpcUa_QueryDataSet 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_QueryDataSet array
bool UaQueryDataSets::operator!= ( const UaQueryDataSets other) const

Compare two UaQueryDataSets.

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

Assignment operator.

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

Compare two UaQueryDataSets.

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

Index operator.

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

Index operator.

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