C++ Based OPC UA Client/Server SDK  1.5.5.355

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

#include <uaarraytemplates.h>

Public Member Functions

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

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

Constructor & Destructor Documentation

UaHistoryReadValueIds::UaHistoryReadValueIds ( const UaHistoryReadValueIds other)

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

Parameters
otherthe other HistoryReadValueIds used to initialize the object
UaHistoryReadValueIds::UaHistoryReadValueIds ( OpcUa_Int32  length,
OpcUa_HistoryReadValueId data 
)

Constructs an instance of the class UaHistoryReadValueId using a raw OpcUa_HistoryReadValueId array.

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

Member Function Documentation

void UaHistoryReadValueIds::attach ( OpcUa_UInt32  length,
OpcUa_HistoryReadValueId data 
)

Attach to a raw OpcUa_HistoryReadValueId array.

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

Attach to a raw OpcUa_HistoryReadValueId array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_HistoryReadValueId * UaHistoryReadValueIds::detach ( )

Detach from the internal OpcUa_HistoryReadValueId 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_HistoryReadValueId array
bool UaHistoryReadValueIds::operator!= ( const UaHistoryReadValueIds other) const

Compare two UaHistoryReadValueIds.

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

Assignment operator.

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

Compare two UaHistoryReadValueIds.

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

Index operator.

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

Index operator.

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