UA Server SDK C++ Bundle
1.4.1.271
|
Wrapper class for the UA stack structure OpcUa_HistoryEvent. More...
#include <uahistoryevent.h>
Public Member Functions | |
UaHistoryEvent () | |
Constructs an instance of the class UaHistoryEvent with empty default values. | |
UaHistoryEvent (const UaHistoryEvent &other) | |
Constructs an instance of the class UaHistoryEvent with values from another UaHistoryEvent object. More... | |
UaHistoryEvent (const OpcUa_HistoryEvent &other) | |
Constructs an instance of the class UaHistoryEvent with values from another OpcUa_HistoryEvent structure. More... | |
UaHistoryEvent (const UaHistoryEventFieldLists &events) | |
Constructs an instance of the class UaHistoryEvent with values provided in the constructor. | |
UaHistoryEvent (const UaExtensionObject &extensionObject) | |
Constructs an instance of the class UaHistoryEvent initialized with value from a UaExtensionObject. More... | |
UaHistoryEvent (const OpcUa_ExtensionObject &extensionObject) | |
Constructs an instance of the class UaHistoryEvent initialized with value from an OpcUa_ExtensionObject structure. More... | |
~UaHistoryEvent () | |
Destroys the UaHistoryEvent object. | |
void | clear () |
Clear the data of the UaHistoryEvent. More... | |
bool | operator== (const UaHistoryEvent &other) const |
Compare two UaHistoryEvent if they are similar. More... | |
bool | operator!= (const UaHistoryEvent &other) const |
Returns true if the other UaHistoryEvent is not equal to this. More... | |
UaHistoryEvent & | operator= (const UaHistoryEvent &other) |
Assignment operator. More... | |
OpcUa_HistoryEvent * | copy () const |
Copy UaHistoryEvent data to a newly allocated OpcUa_HistoryEvent. More... | |
void | copyTo (OpcUa_HistoryEvent *pDst) const |
Copy UaHistoryEvent data to an existing OpcUa_HistoryEvent structure. More... | |
void | attach (OpcUa_HistoryEvent *pValue) |
Attaches the data of the parameter pValue. More... | |
OpcUa_HistoryEvent * | detach (OpcUa_HistoryEvent *pDst) |
Detaches the internal HistoryEvent structure from this class. More... | |
Static Public Member Functions | |
static OpcUa_HistoryEvent * | clone (const OpcUa_HistoryEvent &source) |
Copy OpcUa_HistoryEvent data to a newly allocated OpcUa_HistoryEvent. More... | |
static void | cloneTo (const OpcUa_HistoryEvent &source, OpcUa_HistoryEvent ©) |
Copy OpcUa_HistoryEvent data to an existing OpcUa_HistoryEvent structure. More... | |
Wrapper class for the UA stack structure OpcUa_HistoryEvent.
This class encapsulates the native OpcUa_HistoryEvent structure and handles memory allocation and cleanup for you. UaHistoryEvent uses implicit sharing to avoid needless copying and to boost the performance. Only if you modify a shared HistoryEvent it creates a copy for that (copy-on-write). So assigning another UaHistoryEvent or passing it as parameter needs constant time and is nearly as fast as assigning a pointer.
UaHistoryEvent::UaHistoryEvent | ( | const UaHistoryEvent & | other | ) |
Constructs an instance of the class UaHistoryEvent with values from another UaHistoryEvent object.
other | the other UaHistoryEvent used to initialize the object |
UaHistoryEvent::UaHistoryEvent | ( | const OpcUa_HistoryEvent & | other | ) |
Constructs an instance of the class UaHistoryEvent with values from another OpcUa_HistoryEvent structure.
other | the other OpcUa_HistoryEvent used to initialize the object |
UaHistoryEvent::UaHistoryEvent | ( | const UaExtensionObject & | extensionObject | ) |
Constructs an instance of the class UaHistoryEvent initialized with value from a UaExtensionObject.
extensionObject | the extension object containing the HistoryEvent |
UaHistoryEvent::UaHistoryEvent | ( | const OpcUa_ExtensionObject & | extensionObject | ) |
Constructs an instance of the class UaHistoryEvent initialized with value from an OpcUa_ExtensionObject structure.
extensionObject | the extension object containing the HistoryEvent |
void UaHistoryEvent::attach | ( | OpcUa_HistoryEvent * | pValue | ) |
Attaches the data of the parameter pValue.
Don't clear the data of pValue afterwards manually, because UaHistoryEvent is responsible for it now.
[in] | pValue | Parameter to attach to. |
void UaHistoryEvent::clear | ( | ) |
Clear the data of the UaHistoryEvent.
|
static |
Copy OpcUa_HistoryEvent data to a newly allocated OpcUa_HistoryEvent.
source | Source to clone. |
|
static |
Copy OpcUa_HistoryEvent data to an existing OpcUa_HistoryEvent structure.
source | the source of the clone operation. |
copy | the destination of the clone operation. |
OpcUa_HistoryEvent * UaHistoryEvent::copy | ( | ) | const |
Copy UaHistoryEvent data to a newly allocated OpcUa_HistoryEvent.
void UaHistoryEvent::copyTo | ( | OpcUa_HistoryEvent * | pDst | ) | const |
Copy UaHistoryEvent data to an existing OpcUa_HistoryEvent structure.
pDst | the destination of this copy operation. |
OpcUa_HistoryEvent * UaHistoryEvent::detach | ( | OpcUa_HistoryEvent * | pDst | ) |
Detaches the internal HistoryEvent structure from this class.
This way you take over the control of releasing the HistoryEvent data. If more than one reference exists, the data is copied to pDst instead of being detached.
[out] | pDst | Pointer to OpcUa_HistoryEvent structure that receives the HistoryEvent data. |
bool UaHistoryEvent::operator!= | ( | const UaHistoryEvent & | other | ) | const |
Returns true if the other UaHistoryEvent is not equal to this.
other | the UaHistoryEvent to compare. |
UaHistoryEvent & UaHistoryEvent::operator= | ( | const UaHistoryEvent & | other | ) |
bool UaHistoryEvent::operator== | ( | const UaHistoryEvent & | other | ) | const |
Compare two UaHistoryEvent if they are similar.
other | the UaHistoryEvent to compare. |