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