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