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