Array class for the UA stack structure OpcUa_ThreeDCartesianCoordinates.
More...
#include <uathreedcartesiancoordinates.h>
Array class for the UA stack structure OpcUa_ThreeDCartesianCoordinates.
This class encapsulates an array of the native OpcUa_ThreeDCartesianCoordinates structure and handles memory allocation and cleanup for you.
- See also
- UaThreeDCartesianCoordinates for information about the encapsulated structure.
UaThreeDCartesianCoordinatess::UaThreeDCartesianCoordinatess |
( |
OpcUa_Int32 |
length, |
|
|
OpcUa_ThreeDCartesianCoordinates * |
data |
|
) |
| |
Constructs an instance of the class UaThreeDCartesianCoordinatess using a raw OpcUa_ThreeDCartesianCoordinates array.
- Parameters
-
length | the length of the raw OpcUa_ThreeDCartesianCoordinates array |
data | the raw OpcUa_ThreeDCartesianCoordinates array |
void UaThreeDCartesianCoordinatess::attach |
( |
OpcUa_UInt32 |
length, |
|
|
OpcUa_ThreeDCartesianCoordinates * |
data |
|
) |
| |
Attach to a raw OpcUa_ThreeDCartesianCoordinates array.
- Note
- Don't manually free the attached data afterwards, because UaThreeDCartesianCoordinatess is responsible for it now.
- Parameters
-
length | the length of the raw OpcUa_ThreeDCartesianCoordinates array |
data | the raw OpcUa_ThreeDCartesianCoordinates array |
void UaThreeDCartesianCoordinatess::attach |
( |
OpcUa_Int32 |
length, |
|
|
OpcUa_ThreeDCartesianCoordinates * |
data |
|
) |
| |
Attach to a raw OpcUa_ThreeDCartesianCoordinates array.
- Note
- Don't manually free the attached data afterwards, because UaThreeDCartesianCoordinatess is responsible for it now.
- Parameters
-
length | the length of the raw OpcUa_ThreeDCartesianCoordinates array |
data | the raw OpcUa_ThreeDCartesianCoordinates array |
void UaThreeDCartesianCoordinatess::create |
( |
OpcUa_UInt32 |
length | ) |
|
Clears the array and resizes to the given length.
- Parameters
-
length | the new length of the array |
OpcUa_ThreeDCartesianCoordinates * UaThreeDCartesianCoordinatess::detach |
( |
| ) |
|
Detach from the internal OpcUa_ThreeDCartesianCoordinates 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_ThreeDCartesianCoordinates array
Assignment operator.
- Parameters
-
const OpcUa_ThreeDCartesianCoordinates & UaThreeDCartesianCoordinatess::operator[] |
( |
OpcUa_UInt32 |
index | ) |
const |
Index operator.
- Parameters
-
index | the index of the structure to return. |
OpcUa_ThreeDCartesianCoordinates & UaThreeDCartesianCoordinatess::operator[] |
( |
OpcUa_UInt32 |
index | ) |
|
Index operator.
- Parameters
-
index | the index of the structure to return. |
void UaThreeDCartesianCoordinatess::resize |
( |
OpcUa_UInt32 |
length | ) |
|
Resizes the array to a given length.
- Parameters
-
length | the new length of the array |
The documentation for this class was generated from the following files:
- C:/work/uasdkcpp/src/uabase/uabasecpp/uathreedcartesiancoordinates.h
- C:/work/uasdkcpp/src/uabase/uabasecpp/uathreedcartesiancoordinates.cpp