QOpcUaNodeCreationAttributes Class
该类用于管理节点创建时的属性值。更多内容...
| 头文件: | #include <QOpcUaNodeCreationAttributes> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
| qmake: | QT += opcua |
公共函数
| QOpcUaNodeCreationAttributes() | |
| QOpcUaNodeCreationAttributes(const QOpcUaNodeCreationAttributes &other) | |
| QOpcUa::AccessLevel | accessLevel() const |
| QList<quint32> | arrayDimensions() const |
| bool | containsNoLoops() const |
| QString | dataTypeId() const |
| QOpcUaLocalizedText | description() const |
| QOpcUaLocalizedText | displayName() const |
| QOpcUa::EventNotifier | eventNotifier() const |
| bool | executable() const |
| bool | hasAccessLevel() const |
| bool | hasArrayDimensions() const |
| bool | hasContainsNoLoops() const |
| bool | hasDataTypeId() const |
| bool | hasDescription() const |
| bool | hasDisplayName() const |
| bool | hasEventNotifier() const |
| bool | hasExecutable() const |
| bool | hasHistorizing() const |
| bool | hasInverseName() const |
| bool | hasIsAbstract() const |
| bool | hasMinimumSamplingInterval() const |
| bool | hasSymmetric() const |
| bool | hasUserAccessLevel() const |
| bool | hasUserExecutable() const |
| bool | hasUserWriteMask() const |
| bool | hasValue() const |
| bool | hasValueRank() const |
| bool | hasWriteMask() const |
| bool | historizing() const |
| QOpcUaLocalizedText | inverseName() const |
| bool | isAbstract() const |
| double | minimumSamplingInterval() const |
| void | setAccessLevel(QOpcUa::AccessLevel accessLevel) |
| void | setArrayDimensions(const QList<quint32> &arrayDimensions) |
| void | setContainsNoLoops(bool containsNoLoops) |
| void | setDataTypeId(const QString &dataTypeId) |
| void | setDescription(const QOpcUaLocalizedText &description) |
| void | setDisplayName(const QOpcUaLocalizedText &displayName) |
| void | setEventNotifier(QOpcUa::EventNotifier eventNotifier) |
| void | setExecutable(bool executable) |
| void | setHistorizing(bool historizing) |
| void | setInverseName(const QOpcUaLocalizedText &inverseName) |
| void | setIsAbstract(bool isAbstract) |
| void | setMinimumSamplingInterval(double minimumSamplingInterval) |
| void | setSymmetric(bool symmetric) |
| void | setUserAccessLevel(QOpcUa::AccessLevel userAccessLevel) |
| void | setUserExecutable(bool userExecutable) |
| void | setUserWriteMask(QOpcUa::WriteMask userWriteMask) |
| void | setValue(const QVariant &value, QOpcUa::Types type = QOpcUa::Types::Undefined) |
| void | setValueRank(qint32 valueRank) |
| void | setWriteMask(QOpcUa::WriteMask writeMask) |
| bool | symmetric() const |
| QOpcUa::AccessLevel | userAccessLevel() const |
| bool | userExecutable() const |
| QOpcUa::WriteMask | userWriteMask() const |
| QVariant | value() const |
| qint32 | valueRank() const |
| QOpcUa::Types | valueType() const |
| QOpcUa::WriteMask | writeMask() const |
| QOpcUaNodeCreationAttributes & | operator=(const QOpcUaNodeCreationAttributes &rhs) |
详细说明
该类用于存储节点属性的值,这些值在OPC UA地址空间中创建新节点时会传递给服务器。
不同的节点类支持以下节点属性:
| 属性 | 对象 | 变量 | 方法 | 对象类型 | 变量类型 | 引用类型 | 数据类型 | 视图 |
|---|---|---|---|---|---|---|---|---|
| 访问级别 | X | |||||||
| 数组维度 | X | X | ||||||
| 不包含循环 | X | |||||||
| 数据类型 | X | X | ||||||
| 描述 | X | X | X | X | X | X | X | X |
| 显示名称 | X | X | X | X | X | X | X | X |
| EventNotifier | X | |||||||
| 可执行文件 | X | |||||||
| 历史化 | X | |||||||
| 反向名称 | X | |||||||
| 是否为抽象类 | X | X | X | X | ||||
| 最小采样间隔 | X | |||||||
| 对称 | X | |||||||
| 用户访问级别 | X | |||||||
| 用户可执行 | X | |||||||
| 用户写入掩码 | X | X | X | X | X | X | X | X |
| 值 | X | X | ||||||
| 值排名 | X | X | ||||||
| 写入掩码 | X | X | X | X | X | X | X | X |
另请参阅 QOpcUaClient::addNode()。
成员函数文档
QOpcUaNodeCreationAttributes::QOpcUaNodeCreationAttributes()
默认情况下,会构建一个未设置任何参数的节点创建属性对象。
QOpcUaNodeCreationAttributes::QOpcUaNodeCreationAttributes(const QOpcUaNodeCreationAttributes &other)
根据other 的值构建一个节点创建属性对象。
QOpcUa::AccessLevel QOpcUaNodeCreationAttributes::accessLevel() const
返回 AccessLevel 属性的值。
另请参阅 setAccessLevel()。
QList<quint32> QOpcUaNodeCreationAttributes::arrayDimensions() const
返回 ArrayDimensions 属性的值。
另请参阅 setArrayDimensions()。
bool QOpcUaNodeCreationAttributes::containsNoLoops() const
返回 ContainsNoLoops 属性的值。
另请参阅 setContainsNoLoops()。
QString QOpcUaNodeCreationAttributes::dataTypeId() const
返回 DataType 属性的值。
另请参阅 setDataTypeId()。
QOpcUaLocalizedText QOpcUaNodeCreationAttributes::description() const
返回 Description 属性的值。
另请参阅 setDescription()。
QOpcUaLocalizedText QOpcUaNodeCreationAttributes::displayName() const
返回 DisplayName 属性的值。
另请参阅 setDisplayName()。
QOpcUa::EventNotifier QOpcUaNodeCreationAttributes::eventNotifier() const
返回 EventNotifier 属性的值。
另请参阅 ` setEventNotifier()`。
bool QOpcUaNodeCreationAttributes::executable() const
返回“可执行”属性的值。
另请参阅 setExecutable()。
bool QOpcUaNodeCreationAttributes::hasAccessLevel() const
如果设置了 AccessLevel 属性的值,则返回true 。
bool QOpcUaNodeCreationAttributes::hasArrayDimensions() const
如果已设置 ArrayDimensions 属性的值,则返回true 。
bool QOpcUaNodeCreationAttributes::hasContainsNoLoops() const
如果已设置 ContainsNoLoops 属性的值,则返回true 。
bool QOpcUaNodeCreationAttributes::hasDataTypeId() const
如果已设置 DataType 属性的值,则返回true 。
bool QOpcUaNodeCreationAttributes::hasDescription() const
如果已设置 Description 属性的值,则返回true 。
bool QOpcUaNodeCreationAttributes::hasDisplayName() const
如果设置了 DisplayName 属性的值,则返回true 。
bool QOpcUaNodeCreationAttributes::hasEventNotifier() const
如果已设置 EventNotifier 属性的值,则返回 `true `。
bool QOpcUaNodeCreationAttributes::hasExecutable() const
如果已为 Executable 属性设置了值,则返回true 。
bool QOpcUaNodeCreationAttributes::hasHistorizing() const
如果“Historizing”属性的值已设置,则返回true 。
bool QOpcUaNodeCreationAttributes::hasInverseName() const
如果已设置 InverseName 属性的值,则返回true 。
bool QOpcUaNodeCreationAttributes::hasIsAbstract() const
如果 IsAbstract 属性的值已设置,则返回true 。
bool QOpcUaNodeCreationAttributes::hasMinimumSamplingInterval() const
如果已设置 MinimumSamplingInterval 属性的值,则返回true 。
bool QOpcUaNodeCreationAttributes::hasSymmetric() const
如果设置了 Symmetric 属性的值,则返回true 。
bool QOpcUaNodeCreationAttributes::hasUserAccessLevel() const
如果 UserAccessLevel 属性的值已设置,则返回true 。
bool QOpcUaNodeCreationAttributes::hasUserExecutable() const
如果 UserExecutable 属性的值已被设置,则返回true 。
bool QOpcUaNodeCreationAttributes::hasUserWriteMask() const
如果 UserWriteMask 属性的值已设置,则返回true 。
bool QOpcUaNodeCreationAttributes::hasValue() const
如果 Value 属性的值已设置,则返回true 。
bool QOpcUaNodeCreationAttributes::hasValueRank() const
如果 ValueRank 属性的值已设置,则返回true 。
bool QOpcUaNodeCreationAttributes::hasWriteMask() const
如果已设置 WriteMask 属性的值,则返回true 。
bool QOpcUaNodeCreationAttributes::historizing() const
返回“Historizing”属性的值。
另请参阅 ` setHistorizing()`。
QOpcUaLocalizedText QOpcUaNodeCreationAttributes::inverseName() const
返回 InverseName 属性的值。
另请参阅 setInverseName()。
bool QOpcUaNodeCreationAttributes::isAbstract() const
返回 IsAbstract 属性的值。
另请参阅 setIsAbstract()。
double QOpcUaNodeCreationAttributes::minimumSamplingInterval() const
返回 MinimumSamplingInterval 属性的值。
另请参阅 setMinimumSamplingInterval()。
void QOpcUaNodeCreationAttributes::setAccessLevel(QOpcUa::AccessLevel accessLevel)
将 AccessLevel 属性的值设置为accessLevel 。
另请参阅 accessLevel()。
void QOpcUaNodeCreationAttributes::setArrayDimensions(const QList<quint32> &arrayDimensions)
将 ArrayDimensions 属性的值设置为arrayDimensions 。
另请参阅 arrayDimensions()。
void QOpcUaNodeCreationAttributes::setContainsNoLoops(bool containsNoLoops)
将 ContainsNoLoops 属性的值设置为containsNoLoops 。
另请参阅 containsNoLoops()。
void QOpcUaNodeCreationAttributes::setDataTypeId(const QString &dataTypeId)
将 DataType 属性的值设置为dataTypeId 。
另请参阅 dataTypeId()。
void QOpcUaNodeCreationAttributes::setDescription(const QOpcUaLocalizedText &description)
将 Description 属性的值设置为description 。
另请参阅 description()。
void QOpcUaNodeCreationAttributes::setDisplayName(const QOpcUaLocalizedText &displayName)
将 DisplayName 属性的值设置为displayName 。
另请参阅 displayName()。
void QOpcUaNodeCreationAttributes::setEventNotifier(QOpcUa::EventNotifier eventNotifier)
将 EventNotifier 属性的值设置为eventNotifier 。
另请参阅 eventNotifier()。
void QOpcUaNodeCreationAttributes::setExecutable(bool executable)
将“可执行文件”属性的值设置为executable 。
另请参阅 executable()。
void QOpcUaNodeCreationAttributes::setHistorizing(bool historizing)
将“Historizing”属性的值设置为historizing 。
另请参阅 historizing()。
void QOpcUaNodeCreationAttributes::setInverseName(const QOpcUaLocalizedText &inverseName)
将 InverseName 属性的值设置为inverseName 。
另请参阅 inverseName()。
void QOpcUaNodeCreationAttributes::setIsAbstract(bool isAbstract)
将 IsAbstract 属性的值设置为isAbstract 。
另请参阅 isAbstract()。
void QOpcUaNodeCreationAttributes::setMinimumSamplingInterval(double minimumSamplingInterval)
将 MinimumSamplingInterval 属性的值设置为minimumSamplingInterval 。
另请参阅 minimumSamplingInterval()。
void QOpcUaNodeCreationAttributes::setSymmetric(bool symmetric)
将“Symmetric”属性的值设置为symmetric 。
另请参阅 symmetric()。
void QOpcUaNodeCreationAttributes::setUserAccessLevel(QOpcUa::AccessLevel userAccessLevel)
将 UserAccessLevel 属性的值设置为userAccessLevel 。
另请参阅 userAccessLevel()。
void QOpcUaNodeCreationAttributes::setUserExecutable(bool userExecutable)
将 UserExecutable 属性的值设置为userExecutable 。
另请参阅 userExecutable()。
void QOpcUaNodeCreationAttributes::setUserWriteMask(QOpcUa::WriteMask userWriteMask)
将 UserWriteMask 属性的值设置为userWriteMask 。
另请参阅 userWriteMask()。
void QOpcUaNodeCreationAttributes::setValue(const QVariant &value, QOpcUa::Types type = QOpcUa::Types::Undefined)
将“Value”属性的值设置为“value ”,其类型为“type ”。
另请参阅 value()。
void QOpcUaNodeCreationAttributes::setValueRank(qint32 valueRank)
将 ValueRank 属性的值设置为valueRank 。
另请参阅 valueRank()。
void QOpcUaNodeCreationAttributes::setWriteMask(QOpcUa::WriteMask writeMask)
将 WriteMask 属性的值设置为writeMask 。
另请参阅 writeMask()。
bool QOpcUaNodeCreationAttributes::symmetric() const
返回 Symmetric 属性的值。
另请参阅 setSymmetric()。
QOpcUa::AccessLevel QOpcUaNodeCreationAttributes::userAccessLevel() const
返回 UserAccessLevel 属性的值。
另请参阅 setUserAccessLevel()。
bool QOpcUaNodeCreationAttributes::userExecutable() const
返回 UserExecutable 属性的值。
另请参阅 setUserExecutable()。
QOpcUa::WriteMask QOpcUaNodeCreationAttributes::userWriteMask() const
返回 UserWriteMask 属性的值。
另请参阅 setUserWriteMask()。
QVariant QOpcUaNodeCreationAttributes::value() const
返回“Value”属性的值。
另请参阅 setValue()。
qint32 QOpcUaNodeCreationAttributes::valueRank() const
返回 ValueRank 属性的值。
另请参阅 setValueRank()。
QOpcUa::Types QOpcUaNodeCreationAttributes::valueType() const
返回 value 属性的类型。
QOpcUa::WriteMask QOpcUaNodeCreationAttributes::writeMask() const
返回 WriteMask 属性的值。
另请参阅 ` setWriteMask()`。
QOpcUaNodeCreationAttributes &QOpcUaNodeCreationAttributes::operator=(const QOpcUaNodeCreationAttributes &rhs)
将rhs 的值赋给此节点创建属性对象。
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.