C++ UA Server SDK
1.5.0.318
|
Array class for the UA stack structure OpcUa_MonitoredItemNotification. More...
#include <uaarraytemplates.h>
Public Member Functions | |
UaMonitoredItemNotifications () | |
Constructs an empty instance of the class UaMonitoredItemNotifications. | |
UaMonitoredItemNotifications (const UaMonitoredItemNotifications &other) | |
Constructs an instance of the class MonitoredItemNotifications with values from another MonitoredItemNotifications object. More... | |
UaMonitoredItemNotifications (OpcUa_Int32 length, OpcUa_MonitoredItemNotification *data) | |
Constructs an instance of the class UaMonitoredItemNotification using a raw OpcUa_MonitoredItemNotification array. More... | |
virtual | ~UaMonitoredItemNotifications () |
Destroys the UaMonitoredItemNotifications object. | |
UaMonitoredItemNotifications & | operator= (const UaMonitoredItemNotifications &other) |
Assignment operator. More... | |
const OpcUa_MonitoredItemNotification & | operator[] (OpcUa_UInt32 index) const |
Index operator. More... | |
OpcUa_MonitoredItemNotification & | operator[] (OpcUa_UInt32 index) |
Index operator. More... | |
bool | operator== (const UaMonitoredItemNotifications &other) const |
Compare two UaMonitoredItemNotifications. More... | |
bool | operator!= (const UaMonitoredItemNotifications &other) const |
Compare two UaMonitoredItemNotifications. More... | |
void | attach (OpcUa_UInt32 length, OpcUa_MonitoredItemNotification *data) |
Attach to a raw OpcUa_MonitoredItemNotification array. More... | |
void | attach (OpcUa_Int32 length, OpcUa_MonitoredItemNotification *data) |
Attach to a raw OpcUa_MonitoredItemNotification array. More... | |
OpcUa_MonitoredItemNotification * | detach () |
Detach from the internal OpcUa_MonitoredItemNotification array. More... | |
void | create (OpcUa_UInt32 length) |
Clears the array and resizes to the given length. More... | |
void | resize (OpcUa_UInt32 length) |
Resizes the array to a given length. More... | |
void | clear () |
Clears the array. | |
Array class for the UA stack structure OpcUa_MonitoredItemNotification.
This class encapsulates an array of the native OpcUa_MonitoredItemNotification structure and handles memory allocation and cleanup for you.
UaMonitoredItemNotifications::UaMonitoredItemNotifications | ( | const UaMonitoredItemNotifications & | other | ) |
Constructs an instance of the class MonitoredItemNotifications with values from another MonitoredItemNotifications object.
other | the other MonitoredItemNotifications used to initialize the object |
UaMonitoredItemNotifications::UaMonitoredItemNotifications | ( | OpcUa_Int32 | length, |
OpcUa_MonitoredItemNotification * | data | ||
) |
Constructs an instance of the class UaMonitoredItemNotification using a raw OpcUa_MonitoredItemNotification array.
length | the length of the raw OpcUa_MonitoredItemNotification array |
data | the raw OpcUa_MonitoredItemNotification array |
void UaMonitoredItemNotifications::attach | ( | OpcUa_UInt32 | length, |
OpcUa_MonitoredItemNotification * | data | ||
) |
Attach to a raw OpcUa_MonitoredItemNotification array.
length | the length of the raw OpcUa_MonitoredItemNotification array |
data | the raw OpcUa_MonitoredItemNotification array |
void UaMonitoredItemNotifications::attach | ( | OpcUa_Int32 | length, |
OpcUa_MonitoredItemNotification * | data | ||
) |
Attach to a raw OpcUa_MonitoredItemNotification array.
length | the length of the raw OpcUa_MonitoredItemNotification array |
data | the raw OpcUa_MonitoredItemNotification array |
void UaMonitoredItemNotifications::create | ( | OpcUa_UInt32 | length | ) |
Clears the array and resizes to the given length.
length | the new length of the array |
OpcUa_MonitoredItemNotification * UaMonitoredItemNotifications::detach | ( | ) |
Detach from the internal OpcUa_MonitoredItemNotification array.
After detaching, the detached array data will not be cleared automatically anymore.
bool UaMonitoredItemNotifications::operator!= | ( | const UaMonitoredItemNotifications & | other | ) | const |
Compare two UaMonitoredItemNotifications.
other | the UaMonitoredItemNotifications to compare with. |
UaMonitoredItemNotifications & UaMonitoredItemNotifications::operator= | ( | const UaMonitoredItemNotifications & | other | ) |
Assignment operator.
other | the UaMonitoredItemNotifications to assign. |
bool UaMonitoredItemNotifications::operator== | ( | const UaMonitoredItemNotifications & | other | ) | const |
Compare two UaMonitoredItemNotifications.
other | the UaMonitoredItemNotifications to compare with. |
const OpcUa_MonitoredItemNotification & UaMonitoredItemNotifications::operator[] | ( | OpcUa_UInt32 | index | ) | const |
Index operator.
index | the index of the structure to return. |
OpcUa_MonitoredItemNotification & UaMonitoredItemNotifications::operator[] | ( | OpcUa_UInt32 | index | ) |
Index operator.
index | the index of the structure to return. |
void UaMonitoredItemNotifications::resize | ( | OpcUa_UInt32 | length | ) |
Resizes the array to a given length.
length | the new length of the array |