C++ Based OPC UA Client/Server SDK
1.5.3.346
|
Wrapper class for the UA stack structure OpcUa_LocalizedText. More...
#include <ualocalizedtext.h>
Inherits OpcUa_LocalizedText.
Public Member Functions | |
UaLocalizedText () | |
construction | |
UaLocalizedText (const UaLocalizedText &other) | |
construction More... | |
UaLocalizedText (const OpcUa_LocalizedText &other) | |
construction More... | |
UaLocalizedText (const UaString &Locale, const UaString &Text) | |
construction More... | |
~UaLocalizedText () | |
destruction | |
void | clear () |
Clear the data of the UaLocalizedText. More... | |
void | detach () |
Detach class from structure data. More... | |
UaLocalizedText & | attach (const OpcUa_LocalizedText *pSrc) |
Attaches an existing OpcUa_LocalizedText structure. More... | |
OpcUa_Boolean | isNull () const |
Checks if the localized text is null. More... | |
UaLocalizedText & | operator= (const UaLocalizedText &other) |
Assignment operator. More... | |
UaLocalizedText & | operator= (const OpcUa_LocalizedText &other) |
Assignment operator. More... | |
bool | operator== (const UaLocalizedText &other) const |
Compare variables if they are similar. More... | |
bool | operator!= (const UaLocalizedText &other) const |
Returns true if other is not equal to this. More... | |
operator const OpcUa_LocalizedText * () const | |
Return internal OpcUa_LocalizedText structure. More... | |
OpcUa_LocalizedText * | copy () const |
Copy UaLocalizedText data to a newly allocated OpcUa_LocalizedText. More... | |
void | copyTo (OpcUa_LocalizedText *pDst) const |
Copy UaLocalizedText data to an existing OpcUa_LocalizedText structure. More... | |
UaString | toString () const |
Converts the text part of the LocalizedText into a UaString. More... | |
UaString | toFullString () const |
Converts the full LocalizedText into a UaString. More... | |
void | setLocalizedText (const UaString &sLocale, const UaString &sText) |
Clears the current localized text and sets the locale part with the passed locale string and the text part with the passed text string. More... | |
void | setLocalizedText (const UaString &sText) |
Clears the current localized text and sets the text part with the passed text string. More... | |
void | setText (const UaString &sText) |
Overwrites the text part of the localized text with the passed text string. More... | |
void | setLocale (const UaString &sLocale) |
Overwrites the locale part of the localized text with the passed locale string. More... | |
const OpcUa_String * | locale () const |
Get the locale string. More... | |
const OpcUa_String * | text () const |
Get the text string. More... | |
Static Public Member Functions | |
static bool | compare (const OpcUa_LocalizedText &, const OpcUa_LocalizedText &) |
Compare two UaLocalizedText variables. More... | |
static OpcUa_LocalizedText * | clone (const OpcUa_LocalizedText &source) |
Copy OpcUa_VariableAttributes data to a newly allocated OpcUa_VariableAttributes. More... | |
static void | cloneTo (const OpcUa_LocalizedText &source, OpcUa_LocalizedText ©) |
Copy OpcUa_VariableTypeAttributes data to an existing OpcUa_VariableTypeAttributes structure. More... | |
Wrapper class for the UA stack structure OpcUa_LocalizedText.
UaLocalizedText::UaLocalizedText | ( | const UaLocalizedText & | other | ) |
construction
other | the UaLocalizedText. |
UaLocalizedText::UaLocalizedText | ( | const OpcUa_LocalizedText & | other | ) |
construction
other | the OpcUa_LocalizedText. |
construction
sLocale | the country id (e.g. "en"). |
sText | the text to write. |
UaLocalizedText & UaLocalizedText::attach | ( | const OpcUa_LocalizedText * | pSrc | ) |
Attaches an existing OpcUa_LocalizedText structure.
Don't manually free the attached structure afterwards, because UaLocalizedText is responsible for it now.
pSrc | [in] Parameter to attach. |
void UaLocalizedText::clear | ( | ) |
Clear the data of the UaLocalizedText.
|
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 |
Compare two UaLocalizedText variables.
lText1 | a value as UaLocalizedText. |
lText2 | a value as UaLocalizedText. |
OpcUa_LocalizedText * UaLocalizedText::copy | ( | ) | const |
Copy UaLocalizedText data to a newly allocated OpcUa_LocalizedText.
void UaLocalizedText::copyTo | ( | OpcUa_LocalizedText * | pDst | ) | const |
Copy UaLocalizedText data to an existing OpcUa_LocalizedText structure.
pDst | the destination of this operation. |
void UaLocalizedText::detach | ( | ) |
Detach class from structure data.
OpcUa_Boolean UaLocalizedText::isNull | ( | ) | const |
Checks if the localized text is null.
|
inline |
Get the locale string.
UaLocalizedText::operator const OpcUa_LocalizedText * | ( | ) | const |
Return internal OpcUa_LocalizedText structure.
bool UaLocalizedText::operator!= | ( | const UaLocalizedText & | other | ) | const |
Returns true if other is not equal to this.
other | the UaString to compare. |
UaLocalizedText & UaLocalizedText::operator= | ( | const UaLocalizedText & | other | ) |
UaLocalizedText & UaLocalizedText::operator= | ( | const OpcUa_LocalizedText & | other | ) |
bool UaLocalizedText::operator== | ( | const UaLocalizedText & | other | ) | const |
Compare variables if they are similar.
other | the char to compare. |
void UaLocalizedText::setLocale | ( | const UaString & | sLocale | ) |
Overwrites the locale part of the localized text with the passed locale string.
sLocale | The locale id (e.g. "en"). |
Clears the current localized text and sets the locale part with the passed locale string and the text part with the passed text string.
sLocale | The locale id (e.g. "en"). |
sText | The text to set. |
void UaLocalizedText::setLocalizedText | ( | const UaString & | sText | ) |
Clears the current localized text and sets the text part with the passed text string.
sText | The text to set. |
void UaLocalizedText::setText | ( | const UaString & | sText | ) |
Overwrites the text part of the localized text with the passed text string.
sText | The text to set. |
|
inline |
Get the text string.
UaString UaLocalizedText::toFullString | ( | ) | const |
Converts the full LocalizedText into a UaString.
The format of the string is
<locale>|<text>
with the fields
UaString UaLocalizedText::toString | ( | ) | const |
Converts the text part of the LocalizedText into a UaString.