Array class for the UA stack structure OpcUa_DateTime.
More...
#include <uaarraytemplates.h>
Array class for the UA stack structure OpcUa_DateTime.
This class encapsulates an array of the native OpcUa_DateTime structure and handles memory allocation and cleanup for you.
- See also
- UaDateTime for information about the encapsulated structure.
Constructs an instance of the class DateTimeArray with values from another DateTimeArray object.
- Parameters
-
other | the other DateTimeArray used to initialize the object |
UaDateTimeArray::UaDateTimeArray |
( |
OpcUa_Int32 |
length, |
|
|
OpcUa_DateTime * |
data |
|
) |
| |
void UaDateTimeArray::attach |
( |
OpcUa_UInt32 |
length, |
|
|
OpcUa_DateTime * |
data |
|
) |
| |
Attach to a raw OpcUa_DateTime array.
- Note
- Don't manually free the attached data afterwards, because UaDateTimeArray is responsible for it now.
- Parameters
-
void UaDateTimeArray::attach |
( |
OpcUa_Int32 |
length, |
|
|
OpcUa_DateTime * |
data |
|
) |
| |
Attach to a raw OpcUa_DateTime array.
- Note
- Don't manually free the attached data afterwards, because UaDateTimeArray is responsible for it now.
- Parameters
-
void UaDateTimeArray::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_DateTime 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_DateTime array
Compare two UaDateTimeArray.
- See also
- operator==
- Parameters
-
- Returns
- true if not equal, false otherwise.
Assignment operator.
- Parameters
-
Compare two UaDateTimeArray.
- Parameters
-
- Returns
- true if equal, false if not.
const OpcUa_DateTime & UaDateTimeArray::operator[] |
( |
OpcUa_UInt32 |
index | ) |
const |
Index operator.
- Parameters
-
index | the index of the structure to return. |
Index operator.
- Parameters
-
index | the index of the structure to return. |
void UaDateTimeArray::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:
- D:/work/uasdkcpp/src/uabase/uabasecpp/uaarraytemplates.h
- D:/work/uasdkcpp/src/uabase/uabasecpp/uaarraytemplates.cpp