C++ Based OPC UA Client/Server/PubSub SDK
1.7.8.584
|
Wrapper class for the UA stack structure OpcUa_Guid. More...
#include <uaguid.h>
Inherits OpcUa_Guid.
Public Member Functions | |
UaGuid () | |
construction | |
UaGuid (const UaGuid &other) | |
construction More... | |
UaGuid (const OpcUa_Guid &other) | |
construction More... | |
~UaGuid () | |
destruction | |
void | clear () |
Clear the data of the UaGuid. More... | |
UaGuid & | operator= (const UaGuid &other) |
Assignment operator. More... | |
bool | operator== (const UaGuid &other) const |
Compare variables if they are similar. More... | |
bool | operator!= (const UaGuid &other) const |
Returns true if other is not equal to this. More... | |
bool | operator< (const UaGuid &) const |
Is lower than operator. More... | |
bool | operator> (const UaGuid &) const |
Is greater than operator. More... | |
bool | isNull () const |
Compares the value of two structures. More... | |
operator const OpcUa_Guid * () const | |
Return internal OpcUa_UaGuid structure. More... | |
OpcUa_Guid * | copy () const |
Copy Guid to a newly allocated OpcUa_Guid. More... | |
void | copyTo (OpcUa_Guid *pDst) const |
Copy Guid data to an existing OpcUa_Guid structure. More... | |
UaString | toString () const |
Converts the GUID to a string. More... | |
OpcUa_StatusCode | fromString (const UaString &) |
Converts a UTF-8 string representation of a GUID to a binary representation. More... | |
Static Public Member Functions | |
static UaGuid | create () |
Create a new GUID. More... | |
static bool | compare (const OpcUa_Guid &, const OpcUa_Guid &) |
Compares the value of two structures. More... | |
static OpcUa_Guid * | clone (const OpcUa_Guid &source) |
Copy OpcUa_VariableAttributes data to a newly allocated OpcUa_VariableAttributes. More... | |
static void | cloneTo (const OpcUa_Guid &source, const OpcUa_Guid ©) |
Copy OpcUa_VariableTypeAttributes data to an existing OpcUa_VariableTypeAttributes structure. More... | |
Friends | |
UABASE_EXPORT UaDataStream & | operator<< (UaDataStream &, const UaGuid &) |
Writes the internal guid value to the stream. | |
UABASE_EXPORT UaDataStream & | operator>> (UaDataStream &, UaGuid &) |
Reads a guid value from the stream. | |
Wrapper class for the UA stack structure OpcUa_Guid.
Helper class for handling the OPC UA built-in data type Guid. It provides conversion and comparison functions and allows creation of a Guid.
Using Globally Unique IDentifiers (GUID) is a standard way to globally identify entities in a distributed computing environment. It is a 128-bit value.
UaGuid::UaGuid | ( | const OpcUa_Guid & | other | ) |
construction
other | the OpcUa_Guid. |
void UaGuid::clear | ( | ) |
Clear the data of the UaGuid.
|
static |
Copy OpcUa_VariableAttributes data to a newly allocated OpcUa_VariableAttributes.
source | Source to clone. |
|
static |
Copy OpcUa_VariableTypeAttributes data to an existing OpcUa_VariableTypeAttributes structure.
source | Source OpcUa_VariableTypeAttributes to clone. |
copy | New copy of source OpcUa_VariableTypeAttributes. |
|
static |
Compares the value of two structures.
guid1 | the guid to compare. |
guid2 | the guid to compare. |
OpcUa_Guid * UaGuid::copy | ( | ) | const |
Copy Guid to a newly allocated OpcUa_Guid.
void UaGuid::copyTo | ( | OpcUa_Guid * | pDst | ) | const |
Copy Guid data to an existing OpcUa_Guid structure.
pDst | the destination of the copy operation. |
|
static |
Create a new GUID.
OpcUa_StatusCode UaGuid::fromString | ( | const UaString & | sGuid | ) |
Converts a UTF-8 string representation of a GUID to a binary representation.
sGuid | the guid as string. |
bool UaGuid::isNull | ( | ) | const |
Compares the value of two structures.
UaGuid::operator const OpcUa_Guid * | ( | ) | const |
Return internal OpcUa_UaGuid structure.
bool UaGuid::operator!= | ( | const UaGuid & | other | ) | const |
Returns true if other is not equal to this.
other | the UaString to compare. |
bool UaGuid::operator< | ( | const UaGuid & | other | ) | const |
Is lower than operator.
This is used to sort Guids e.g. to use it as key in map
other | the UaGuid to compare. |
bool UaGuid::operator== | ( | const UaGuid & | other | ) | const |
Compare variables if they are similar.
other | the char to compare. |
bool UaGuid::operator> | ( | const UaGuid & | other | ) | const |
Is greater than operator.
other | the UaGuid to compare. |
UaString UaGuid::toString | ( | ) | const |
Converts the GUID to a string.