C++ Based OPC UA Client/Server SDK  1.5.3.346
UaMonitoredItemModifyResults Class Reference

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

#include <uaarraytemplates.h>

Public Member Functions

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

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

Constructor & Destructor Documentation

UaMonitoredItemModifyResults::UaMonitoredItemModifyResults ( const UaMonitoredItemModifyResults other)

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

Parameters
otherthe other MonitoredItemModifyResults used to initialize the object
UaMonitoredItemModifyResults::UaMonitoredItemModifyResults ( OpcUa_Int32  length,
OpcUa_MonitoredItemModifyResult data 
)

Constructs an instance of the class UaMonitoredItemModifyResult using a raw OpcUa_MonitoredItemModifyResult array.

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

Member Function Documentation

void UaMonitoredItemModifyResults::attach ( OpcUa_UInt32  length,
OpcUa_MonitoredItemModifyResult data 
)

Attach to a raw OpcUa_MonitoredItemModifyResult array.

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

Attach to a raw OpcUa_MonitoredItemModifyResult array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_MonitoredItemModifyResult * UaMonitoredItemModifyResults::detach ( )

Detach from the internal OpcUa_MonitoredItemModifyResult 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_MonitoredItemModifyResult array
bool UaMonitoredItemModifyResults::operator!= ( const UaMonitoredItemModifyResults other) const

Compare two UaMonitoredItemModifyResults.

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

Assignment operator.

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

Compare two UaMonitoredItemModifyResults.

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

Index operator.

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

Index operator.

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