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

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

#include <uaarraytemplates.h>

Public Member Functions

 UaMonitoredItemModifyRequests ()
 Constructs an empty instance of the class UaMonitoredItemModifyRequests.
 
 UaMonitoredItemModifyRequests (const UaMonitoredItemModifyRequests &other)
 Constructs an instance of the class MonitoredItemModifyRequests with values from another MonitoredItemModifyRequests object. More...
 
 UaMonitoredItemModifyRequests (OpcUa_Int32 length, OpcUa_MonitoredItemModifyRequest *data)
 Constructs an instance of the class UaMonitoredItemModifyRequest using a raw OpcUa_MonitoredItemModifyRequest array. More...
 
virtual ~UaMonitoredItemModifyRequests ()
 Destroys the UaMonitoredItemModifyRequests object.
 
UaMonitoredItemModifyRequestsoperator= (const UaMonitoredItemModifyRequests &other)
 Assignment operator. More...
 
const
OpcUa_MonitoredItemModifyRequest
operator[] (OpcUa_UInt32 index) const
 Index operator. More...
 
OpcUa_MonitoredItemModifyRequestoperator[] (OpcUa_UInt32 index)
 Index operator. More...
 
bool operator== (const UaMonitoredItemModifyRequests &other) const
 Compare two UaMonitoredItemModifyRequests. More...
 
bool operator!= (const UaMonitoredItemModifyRequests &other) const
 Compare two UaMonitoredItemModifyRequests. More...
 
void attach (OpcUa_UInt32 length, OpcUa_MonitoredItemModifyRequest *data)
 Attach to a raw OpcUa_MonitoredItemModifyRequest array. More...
 
void attach (OpcUa_Int32 length, OpcUa_MonitoredItemModifyRequest *data)
 Attach to a raw OpcUa_MonitoredItemModifyRequest array. More...
 
OpcUa_MonitoredItemModifyRequestdetach ()
 Detach from the internal OpcUa_MonitoredItemModifyRequest 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_MonitoredItemModifyRequest.

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

Constructor & Destructor Documentation

UaMonitoredItemModifyRequests::UaMonitoredItemModifyRequests ( const UaMonitoredItemModifyRequests other)

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

Parameters
otherthe other MonitoredItemModifyRequests used to initialize the object
UaMonitoredItemModifyRequests::UaMonitoredItemModifyRequests ( OpcUa_Int32  length,
OpcUa_MonitoredItemModifyRequest data 
)

Constructs an instance of the class UaMonitoredItemModifyRequest using a raw OpcUa_MonitoredItemModifyRequest array.

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

Member Function Documentation

void UaMonitoredItemModifyRequests::attach ( OpcUa_UInt32  length,
OpcUa_MonitoredItemModifyRequest data 
)

Attach to a raw OpcUa_MonitoredItemModifyRequest array.

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

Attach to a raw OpcUa_MonitoredItemModifyRequest array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_MonitoredItemModifyRequest * UaMonitoredItemModifyRequests::detach ( )

Detach from the internal OpcUa_MonitoredItemModifyRequest 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_MonitoredItemModifyRequest array
bool UaMonitoredItemModifyRequests::operator!= ( const UaMonitoredItemModifyRequests other) const

Compare two UaMonitoredItemModifyRequests.

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

Assignment operator.

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

Compare two UaMonitoredItemModifyRequests.

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

Index operator.

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

Index operator.

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