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