C++ Based OPC UA Client/Server/PubSub SDK
1.7.9.586
|
Wrapper class for the UA stack structure OpcUa_QualifiedName. More...
#include <uaqualifiedname.h>
Inherits OpcUa_QualifiedName.
Public Member Functions | |
UaQualifiedName () | |
construction | |
UaQualifiedName (const UaQualifiedName &other) | |
construction More... | |
UaQualifiedName (const OpcUa_QualifiedName &other) | |
construction More... | |
UaQualifiedName (const UaString &sName, OpcUa_UInt16 nameSpaceIdx) | |
construction More... | |
~UaQualifiedName () | |
destruction | |
void | clear () |
Clear the data of the UaQualifiedName. More... | |
void | detach () |
Detach class from structure data. More... | |
UaQualifiedName & | attach (const OpcUa_QualifiedName *pSrc) |
Attaches an existing OpcUa_QualifiedName structure. More... | |
OpcUa_Boolean | isNull () const |
Checks if the qualified name is null. More... | |
UaQualifiedName & | operator= (const UaQualifiedName &other) |
Assignment operator. More... | |
UaQualifiedName & | operator= (const OpcUa_QualifiedName &other) |
Assignment operator. More... | |
bool | operator== (const UaQualifiedName &other) const |
Compare variables if they are similar. More... | |
bool | operator!= (const UaQualifiedName &other) const |
Returns true if other is not equal to this. More... | |
bool | operator< (const UaQualifiedName &other) const |
Is lower than operator. More... | |
operator const OpcUa_QualifiedName * () const | |
Return internal OpcUa_QualifiedName structure. More... | |
OpcUa_QualifiedName * | copy () const |
Copy UaQualifiedName data to a newly allocated OpcUa_QualifiedName. More... | |
void | copyTo (OpcUa_QualifiedName *pDst) const |
Copy UaQualifiedName data to an existing OpcUa_QualifiedName structure. More... | |
UaString | toString () const |
Converts the name part of the QualifiedName into a UaString. More... | |
UaString | toFullString () const |
Converts the full QualifiedName into a UaString. More... | |
UaString | toXmlString () const |
Converts the full QualifiedName into a UaString in Nodeset XML Format. More... | |
void | setQualifiedName (const UaString &sName, OpcUa_UInt16 nameSpaceIdx) |
Set the Qualified name. More... | |
void | setNamespaceIndex (OpcUa_UInt16 namespaceIndex) |
Set the NamespaceIndex of the Qualified name. More... | |
Static Public Member Functions | |
static bool | compare (const OpcUa_QualifiedName &, const OpcUa_QualifiedName &) |
Compare two UaQualifiedName variables. More... | |
static OpcUa_QualifiedName * | clone (const OpcUa_QualifiedName &source) |
Copy OpcUa_VariableAttributes data to a newly allocated OpcUa_VariableAttributes. More... | |
static void | cloneTo (const OpcUa_QualifiedName &source, OpcUa_QualifiedName ©) |
Copy OpcUa_QualifiedName data to an existing OpcUa_QualifiedName structure. More... | |
Friends | |
UABASE_EXPORT UaDataStream & | operator<< (UaDataStream &, const UaQualifiedName &) |
Writes a QualifiedName to the stream. More... | |
UABASE_EXPORT UaDataStream & | operator>> (UaDataStream &, UaQualifiedName &) |
Reads a QualifiedName from the stream. More... | |
Wrapper class for the UA stack structure OpcUa_QualifiedName.
Qualified names are two-part names: namespace index (UInt16) and name (String). The name part of QualifiedNames is restricted to 512 characters. Derived from OpcUa_QualifiedName.
UaQualifiedName::UaQualifiedName | ( | const UaQualifiedName & | other | ) |
construction
other | the UaQualifiedName. |
UaQualifiedName::UaQualifiedName | ( | const OpcUa_QualifiedName & | other | ) |
construction
other | the OpcUa_QualifiedName. |
UaQualifiedName::UaQualifiedName | ( | const UaString & | sName, |
OpcUa_UInt16 | nameSpaceIdx | ||
) |
construction
sName | the name as UaString. |
nameSpaceIdx | the namespace index. |
UaQualifiedName & UaQualifiedName::attach | ( | const OpcUa_QualifiedName * | pSrc | ) |
Attaches an existing OpcUa_QualifiedName structure.
Don't manually free the attached structure afterwards, because UaQualifiedName is responsible for it now.
pSrc | [in] Parameter to attach. |
void UaQualifiedName::clear | ( | ) |
Clear the data of the UaQualifiedName.
|
static |
Copy OpcUa_VariableAttributes data to a newly allocated OpcUa_VariableAttributes.
source | Source to clone. |
|
static |
Copy OpcUa_QualifiedName data to an existing OpcUa_QualifiedName structure.
source | the OpcUa_QualifiedName source of the operation. |
copy | the OpcUa_QualifiedName destination of the operation. |
|
static |
Compare two UaQualifiedName variables.
qName1 | a value as UaQualifiedName. |
qName2 | a value as UaQualifiedName. |
OpcUa_QualifiedName * UaQualifiedName::copy | ( | ) | const |
Copy UaQualifiedName data to a newly allocated OpcUa_QualifiedName.
void UaQualifiedName::copyTo | ( | OpcUa_QualifiedName * | pDst | ) | const |
Copy UaQualifiedName data to an existing OpcUa_QualifiedName structure.
pDst | the destination of this copy operation. |
void UaQualifiedName::detach | ( | ) |
Detach class from structure data.
OpcUa_Boolean UaQualifiedName::isNull | ( | ) | const |
Checks if the qualified name is null.
UaQualifiedName::operator const OpcUa_QualifiedName * | ( | ) | const |
Return internal OpcUa_QualifiedName structure.
bool UaQualifiedName::operator!= | ( | const UaQualifiedName & | other | ) | const |
Returns true if other is not equal to this.
other | the UaString to compare. |
bool UaQualifiedName::operator< | ( | const UaQualifiedName & | other | ) | const |
Is lower than operator.
This is used to sort QualifiedNames e.g. to use it as key in map
other | the UaQualifiedName to append. |
UaQualifiedName & UaQualifiedName::operator= | ( | const UaQualifiedName & | other | ) |
UaQualifiedName & UaQualifiedName::operator= | ( | const OpcUa_QualifiedName & | other | ) |
bool UaQualifiedName::operator== | ( | const UaQualifiedName & | other | ) | const |
Compare variables if they are similar.
other | the char to compare. |
void UaQualifiedName::setNamespaceIndex | ( | OpcUa_UInt16 | namespaceIndex | ) |
Set the NamespaceIndex of the Qualified name.
namespaceIndex | the NamespaceIndex. |
void UaQualifiedName::setQualifiedName | ( | const UaString & | sName, |
OpcUa_UInt16 | nameSpaceIdx | ||
) |
Set the Qualified name.
sName | the name as UaString. |
nameSpaceIdx | the NamespaceIndex. |
UaString UaQualifiedName::toFullString | ( | ) | const |
Converts the full QualifiedName into a UaString.
The format of the string is
ns=<namespaceindex>|<name>
with the fields
UaString UaQualifiedName::toString | ( | ) | const |
Converts the name part of the QualifiedName into a UaString.
UaString UaQualifiedName::toXmlString | ( | ) | const |
Converts the full QualifiedName into a UaString in Nodeset XML Format.
The format of the string is
<namespaceindex>:<name>
with the fields
|
friend |
Writes a QualifiedName to the stream.
|
friend |
Reads a QualifiedName from the stream.