OPC UA LocalizedText 类型。 更多...
头: | #include <QOpcUaLocalizedText> |
qmake: | QT += opcua |
QOpcUaLocalizedText (const QString & locale , const QString & text ) | |
QOpcUaLocalizedText (const QOpcUaLocalizedText & rhs ) | |
QOpcUaLocalizedText & | operator= (const QOpcUaLocalizedText & rhs ) |
QString | locale () const |
void | setLocale (const QString & locale ) |
void | setText (const QString & text ) |
QString | text () const |
QVariant | operator QVariant () const |
bool | operator== (const QOpcUaLocalizedText & rhs ) const |
This is the Qt OPC UA representation for the OPC UA LocalizedText type defined in OPC-UA part 3, 8.5. A LocalizedText value contains a text string with associated locale information in a second string (e. g. "en" or "en-US"). The format of the locale information string is <language>[-<country/region>]. Language is usually given as ISO 639 two letter code, country/region as ISO 3166 two letter code. Custom codes are also allowed (see OPC-UA part 3, 8.4). It can be used to provide multiple text strings in different languages for a value using an array of LocalizedText 元素。
Locale of the contained text. This has to be in a modified ISO standard notation, for example
en-US
. See OPC UA specification part 3, 8.4 for details.
访问函数:
QString | locale () const |
void | setLocale (const QString & locale ) |
Textual content.
访问函数:
QString | text () const |
void | setText (const QString & text ) |
Constructs a localized text with the locale locale 和文本 text .
Constructs a localized text from rhs .
设置值从 rhs in this localized text.
Returns the locale.
注意: Getter function for property locale.
另请参阅 setLocale ().
Sets the locale to locale .
注意: Setter 函数对于特性 locale .
另请参阅 locale ().
Sets the text to text .
注意: Setter 函数对于特性 text .
另请参阅 text ().
Returns the text.
注意: Getter function for property text.
另请参阅 setText ().
Converts this localized text to QVariant .
返回
true
if this localized text has the same value as
rhs
.