C++ Based OPC UA Client/Server SDK
1.6.5.478
|
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 for equality. More... | |
bool | operator!= (const UaBuildInfo &other) const |
Compare two UaBuildInfo for inequality. 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 to an existing OpcUa_BuildInfo structure. More... | |
OpcUa_BuildInfo * | detach (OpcUa_BuildInfo *pDst) |
Detaches the internal BuildInfo structure from this class. More... | |
UaString | getProductUri () const |
URI that identifies the software. | |
UaString | getManufacturerName () const |
Name of the software manufacturer. | |
UaString | getProductName () const |
Name of the software. | |
UaString | getSoftwareVersion () const |
Software version. | |
UaString | getBuildNumber () const |
Build number. | |
UaDateTime | getBuildDate () const |
Date and time of the build. | |
void | setProductUri (const UaString &productUri) |
URI that identifies the software. | |
void | setManufacturerName (const UaString &manufacturerName) |
Name of the software manufacturer. | |
void | setProductName (const UaString &productName) |
Name of the software. | |
void | setSoftwareVersion (const UaString &softwareVersion) |
Software version. | |
void | setBuildNumber (const UaString &buildNumber) |
Build number. | |
void | setBuildDate (const UaDateTime &buildDate) |
Date and time of the build. | |
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.
Contains elements that describe the build information of the Server.
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 to an existing OpcUa_BuildInfo structure.
Don't manually free the attached structure afterwards, because UaBuildInfo is responsible for it now.
pValue | [in] 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 freeing the BuildInfo data. If more than one reference exists, the data is copied to pDst instead of being detached.
pDst | [out] Pointer to an OpcUa_BuildInfo structure that receives the BuildInfo data. |
bool UaBuildInfo::operator!= | ( | const UaBuildInfo & | other | ) | const |
Compare two UaBuildInfo for inequality.
other | the UaBuildInfo to compare with. |
UaBuildInfo & UaBuildInfo::operator= | ( | const UaBuildInfo & | other | ) |
bool UaBuildInfo::operator== | ( | const UaBuildInfo & | other | ) | const |
Compare two UaBuildInfo for equality.
other | the UaBuildInfo to compare with. |