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