Array class for the UA stack structure OpcUa_WriteValue.
More...
#include <uaarraytemplates.h>
Array class for the UA stack structure OpcUa_WriteValue.
This class encapsulates an array of the native OpcUa_WriteValue structure and handles memory allocation and cleanup for you.
Constructs an instance of the class WriteValues with values from another WriteValues object.
- Parameters
-
other | the other WriteValues used to initialize the object |
Constructs an instance of the class UaWriteValue using a raw OpcUa_WriteValue array.
- Parameters
-
Attach to a raw OpcUa_WriteValue array.
- Note
- Don't manually free the attached data afterwards, because UaWriteValues is responsible for it now.
- Parameters
-
Attach to a raw OpcUa_WriteValue array.
- Note
- Don't manually free the attached data afterwards, because UaWriteValues is responsible for it now.
- Parameters
-
void UaWriteValues::create |
( |
OpcUa_UInt32 |
length | ) |
|
Clears the array and resizes to the given length.
- Parameters
-
length | the new length of the array |
Detach from the internal OpcUa_WriteValue 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_WriteValue array
bool UaWriteValues::operator!= |
( |
const UaWriteValues & |
other | ) |
const |
Compare two UaWriteValues.
- See also
- operator==
- Parameters
-
- Returns
- true if not equal, false otherwise.
Assignment operator.
- Parameters
-
bool UaWriteValues::operator== |
( |
const UaWriteValues & |
other | ) |
const |
Compare two UaWriteValues.
- Parameters
-
- Returns
- true if equal, false if not.
Index operator.
- Parameters
-
index | the index of the structure to return. |
Index operator.
- Parameters
-
index | the index of the structure to return. |
void UaWriteValues::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/uaarraytemplates.h
- C:/work/uasdkcpp/src/uabase/uabasecpp/uaarraytemplates.cpp