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