C++ Based OPC UA Client/Server/PubSub SDK  1.7.6.537

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

#include <uaarraytemplates.h>

Public Member Functions

 UaQualifiedNameArray ()
 Constructs an empty instance of the class UaQualifiedNameArray.
 
 UaQualifiedNameArray (const UaQualifiedNameArray &other)
 Constructs an instance of the class QualifiedNameArray with values from another QualifiedNameArray object. More...
 
 UaQualifiedNameArray (OpcUa_Int32 length, OpcUa_QualifiedName *data)
 Constructs an instance of the class UaQualifiedName using a raw OpcUa_QualifiedName array. More...
 
virtual ~UaQualifiedNameArray ()
 Destroys the UaQualifiedNameArray object.
 
UaQualifiedNameArrayoperator= (const UaQualifiedNameArray &other)
 Assignment operator. More...
 
const OpcUa_QualifiedNameoperator[] (OpcUa_UInt32 index) const
 Index operator. More...
 
OpcUa_QualifiedNameoperator[] (OpcUa_UInt32 index)
 Index operator. More...
 
bool operator== (const UaQualifiedNameArray &other) const
 Compare two UaQualifiedNameArray. More...
 
bool operator!= (const UaQualifiedNameArray &other) const
 Compare two UaQualifiedNameArray. More...
 
void attach (OpcUa_UInt32 length, OpcUa_QualifiedName *data)
 Attach to a raw OpcUa_QualifiedName array. More...
 
void attach (OpcUa_Int32 length, OpcUa_QualifiedName *data)
 Attach to a raw OpcUa_QualifiedName array. More...
 
OpcUa_QualifiedNamedetach ()
 Detach from the internal OpcUa_QualifiedName 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_QualifiedName.

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

See also
UaQualifiedName for information about the encapsulated structure.

Constructor & Destructor Documentation

UaQualifiedNameArray::UaQualifiedNameArray ( const UaQualifiedNameArray other)

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

Parameters
otherthe other QualifiedNameArray used to initialize the object
UaQualifiedNameArray::UaQualifiedNameArray ( OpcUa_Int32  length,
OpcUa_QualifiedName data 
)

Constructs an instance of the class UaQualifiedName using a raw OpcUa_QualifiedName array.

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

Member Function Documentation

void UaQualifiedNameArray::attach ( OpcUa_UInt32  length,
OpcUa_QualifiedName data 
)

Attach to a raw OpcUa_QualifiedName array.

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

Attach to a raw OpcUa_QualifiedName array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_QualifiedName * UaQualifiedNameArray::detach ( )

Detach from the internal OpcUa_QualifiedName 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_QualifiedName array
bool UaQualifiedNameArray::operator!= ( const UaQualifiedNameArray other) const

Compare two UaQualifiedNameArray.

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

Assignment operator.

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

Compare two UaQualifiedNameArray.

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

Index operator.

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

Index operator.

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