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

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

#include <uaarraytemplates.h>

Public Member Functions

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

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

Constructor & Destructor Documentation

UaHistoryUpdateResults::UaHistoryUpdateResults ( const UaHistoryUpdateResults other)

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

Parameters
otherthe other HistoryUpdateResults used to initialize the object
UaHistoryUpdateResults::UaHistoryUpdateResults ( OpcUa_Int32  length,
OpcUa_HistoryUpdateResult data 
)

Constructs an instance of the class UaHistoryUpdateResult using a raw OpcUa_HistoryUpdateResult array.

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

Member Function Documentation

void UaHistoryUpdateResults::attach ( OpcUa_UInt32  length,
OpcUa_HistoryUpdateResult data 
)

Attach to a raw OpcUa_HistoryUpdateResult array.

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

Attach to a raw OpcUa_HistoryUpdateResult array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_HistoryUpdateResult * UaHistoryUpdateResults::detach ( )

Detach from the internal OpcUa_HistoryUpdateResult 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_HistoryUpdateResult array
bool UaHistoryUpdateResults::operator!= ( const UaHistoryUpdateResults other) const

Compare two UaHistoryUpdateResults.

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

Assignment operator.

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

Compare two UaHistoryUpdateResults.

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

Index operator.

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

Index operator.

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