C++ Based OPC UA Client/Server SDK  1.5.5.355

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

#include <uaarraytemplates.h>

Public Member Functions

 UaCallMethodResults ()
 Constructs an empty instance of the class UaCallMethodResults.
 
 UaCallMethodResults (const UaCallMethodResults &other)
 Constructs an instance of the class CallMethodResults with values from another CallMethodResults object. More...
 
 UaCallMethodResults (OpcUa_Int32 length, OpcUa_CallMethodResult *data)
 Constructs an instance of the class UaCallMethodResult using a raw OpcUa_CallMethodResult array. More...
 
virtual ~UaCallMethodResults ()
 Destroys the UaCallMethodResults object.
 
UaCallMethodResultsoperator= (const UaCallMethodResults &other)
 Assignment operator. More...
 
const OpcUa_CallMethodResultoperator[] (OpcUa_UInt32 index) const
 Index operator. More...
 
OpcUa_CallMethodResultoperator[] (OpcUa_UInt32 index)
 Index operator. More...
 
bool operator== (const UaCallMethodResults &other) const
 Compare two UaCallMethodResults. More...
 
bool operator!= (const UaCallMethodResults &other) const
 Compare two UaCallMethodResults. More...
 
void attach (OpcUa_UInt32 length, OpcUa_CallMethodResult *data)
 Attach to a raw OpcUa_CallMethodResult array. More...
 
void attach (OpcUa_Int32 length, OpcUa_CallMethodResult *data)
 Attach to a raw OpcUa_CallMethodResult array. More...
 
OpcUa_CallMethodResultdetach ()
 Detach from the internal OpcUa_CallMethodResult 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_CallMethodResult.

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

Constructor & Destructor Documentation

UaCallMethodResults::UaCallMethodResults ( const UaCallMethodResults other)

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

Parameters
otherthe other CallMethodResults used to initialize the object
UaCallMethodResults::UaCallMethodResults ( OpcUa_Int32  length,
OpcUa_CallMethodResult data 
)

Constructs an instance of the class UaCallMethodResult using a raw OpcUa_CallMethodResult array.

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

Member Function Documentation

void UaCallMethodResults::attach ( OpcUa_UInt32  length,
OpcUa_CallMethodResult data 
)

Attach to a raw OpcUa_CallMethodResult array.

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

Attach to a raw OpcUa_CallMethodResult array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_CallMethodResult * UaCallMethodResults::detach ( )

Detach from the internal OpcUa_CallMethodResult 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_CallMethodResult array
bool UaCallMethodResults::operator!= ( const UaCallMethodResults other) const

Compare two UaCallMethodResults.

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

Assignment operator.

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

Compare two UaCallMethodResults.

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

Index operator.

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

Index operator.

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