C++ Based OPC UA Client/Server SDK  1.5.5.355
UaMonitoredItemCreateRequests Class Reference

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

#include <uaarraytemplates.h>

Public Member Functions

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

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

Constructor & Destructor Documentation

UaMonitoredItemCreateRequests::UaMonitoredItemCreateRequests ( const UaMonitoredItemCreateRequests other)

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

Parameters
otherthe other MonitoredItemCreateRequests used to initialize the object
UaMonitoredItemCreateRequests::UaMonitoredItemCreateRequests ( OpcUa_Int32  length,
OpcUa_MonitoredItemCreateRequest data 
)

Constructs an instance of the class UaMonitoredItemCreateRequest using a raw OpcUa_MonitoredItemCreateRequest array.

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

Member Function Documentation

void UaMonitoredItemCreateRequests::attach ( OpcUa_UInt32  length,
OpcUa_MonitoredItemCreateRequest data 
)

Attach to a raw OpcUa_MonitoredItemCreateRequest array.

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

Attach to a raw OpcUa_MonitoredItemCreateRequest array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_MonitoredItemCreateRequest * UaMonitoredItemCreateRequests::detach ( )

Detach from the internal OpcUa_MonitoredItemCreateRequest 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_MonitoredItemCreateRequest array
bool UaMonitoredItemCreateRequests::operator!= ( const UaMonitoredItemCreateRequests other) const

Compare two UaMonitoredItemCreateRequests.

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

Assignment operator.

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

Compare two UaMonitoredItemCreateRequests.

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

Index operator.

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

Index operator.

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