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

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

#include <uathreedorientation.h>

Public Member Functions

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

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

See also
UaThreeDOrientation for information about the encapsulated structure.

Constructor & Destructor Documentation

UaThreeDOrientations::UaThreeDOrientations ( const UaThreeDOrientations other)

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

Parameters
otherthe other UaThreeDOrientations used to initialize the object
UaThreeDOrientations::UaThreeDOrientations ( OpcUa_Int32  length,
OpcUa_ThreeDOrientation *  data 
)

Constructs an instance of the class UaThreeDOrientations using a raw OpcUa_ThreeDOrientation array.

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

Member Function Documentation

void UaThreeDOrientations::attach ( OpcUa_UInt32  length,
OpcUa_ThreeDOrientation *  data 
)

Attach to a raw OpcUa_ThreeDOrientation array.

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

Attach to a raw OpcUa_ThreeDOrientation array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_ThreeDOrientation * UaThreeDOrientations::detach ( )

Detach from the internal OpcUa_ThreeDOrientation 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_ThreeDOrientation array
bool UaThreeDOrientations::operator!= ( const UaThreeDOrientations other) const

Compare two UaThreeDOrientations.

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

Assignment operator.

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

Compare two UaThreeDOrientations.

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

Index operator.

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

Index operator.

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