C++ Based OPC UA Client/Server SDK  1.5.5.355

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

#include <uaarraytemplates.h>

Public Member Functions

 UaCallMethodRequests ()
 Constructs an empty instance of the class UaCallMethodRequests.
 
 UaCallMethodRequests (const UaCallMethodRequests &other)
 Constructs an instance of the class CallMethodRequests with values from another CallMethodRequests object. More...
 
 UaCallMethodRequests (OpcUa_Int32 length, OpcUa_CallMethodRequest *data)
 Constructs an instance of the class UaCallMethodRequest using a raw OpcUa_CallMethodRequest array. More...
 
virtual ~UaCallMethodRequests ()
 Destroys the UaCallMethodRequests object.
 
UaCallMethodRequestsoperator= (const UaCallMethodRequests &other)
 Assignment operator. More...
 
const OpcUa_CallMethodRequestoperator[] (OpcUa_UInt32 index) const
 Index operator. More...
 
OpcUa_CallMethodRequestoperator[] (OpcUa_UInt32 index)
 Index operator. More...
 
bool operator== (const UaCallMethodRequests &other) const
 Compare two UaCallMethodRequests. More...
 
bool operator!= (const UaCallMethodRequests &other) const
 Compare two UaCallMethodRequests. More...
 
void attach (OpcUa_UInt32 length, OpcUa_CallMethodRequest *data)
 Attach to a raw OpcUa_CallMethodRequest array. More...
 
void attach (OpcUa_Int32 length, OpcUa_CallMethodRequest *data)
 Attach to a raw OpcUa_CallMethodRequest array. More...
 
OpcUa_CallMethodRequestdetach ()
 Detach from the internal OpcUa_CallMethodRequest 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_CallMethodRequest.

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

Constructor & Destructor Documentation

UaCallMethodRequests::UaCallMethodRequests ( const UaCallMethodRequests other)

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

Parameters
otherthe other CallMethodRequests used to initialize the object
UaCallMethodRequests::UaCallMethodRequests ( OpcUa_Int32  length,
OpcUa_CallMethodRequest data 
)

Constructs an instance of the class UaCallMethodRequest using a raw OpcUa_CallMethodRequest array.

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

Member Function Documentation

void UaCallMethodRequests::attach ( OpcUa_UInt32  length,
OpcUa_CallMethodRequest data 
)

Attach to a raw OpcUa_CallMethodRequest array.

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

Attach to a raw OpcUa_CallMethodRequest array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_CallMethodRequest * UaCallMethodRequests::detach ( )

Detach from the internal OpcUa_CallMethodRequest 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_CallMethodRequest array
bool UaCallMethodRequests::operator!= ( const UaCallMethodRequests other) const

Compare two UaCallMethodRequests.

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

Assignment operator.

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

Compare two UaCallMethodRequests.

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

Index operator.

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

Index operator.

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