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