OPC UA 对象
更多...
#include <rmvl/opcua/object.hpp>
◆ Object()
Python: |
---|
| rm.Object( | | ) -> | <Object object> |
◆ add() [1/3]
Python: |
---|
| rm.Object.add( | variable | ) -> | None |
| rm.Object.add( | dsv | ) -> | None |
| rm.Object.add( | method | ) -> | None |
添加(额外的)数据源变量节点至 rm::Object
对象中
- 若设置了对象类型,则此方法只能添加对象类型中不存在的数据源变量节点
- 参数
-
◆ add() [2/3]
void rm::Object::add |
( |
const Method & | method | ) |
|
|
inline |
Python: |
---|
| rm.Object.add( | variable | ) -> | None |
| rm.Object.add( | dsv | ) -> | None |
| rm.Object.add( | method | ) -> | None |
添加(额外的)方法节点至 rm::Object
对象中
- 若设置了对象类型,则此方法只能添加对象类型中不存在的方法节点
- 参数
-
◆ add() [3/3]
void rm::Object::add |
( |
const Variable & | variable | ) |
|
|
inline |
Python: |
---|
| rm.Object.add( | variable | ) -> | None |
| rm.Object.add( | dsv | ) -> | None |
| rm.Object.add( | method | ) -> | None |
添加(额外的)变量节点至 rm::Object
对象中
- 若设置了对象类型,则此方法只能添加对象类型中不存在的变量节点
- 参数
-
◆ empty()
bool rm::Object::empty |
( |
| ) |
const |
|
inline |
Python: |
---|
| rm.Object.empty( | | ) -> | <Is Empty ?> |
◆ getDataSourceVariables()
const std::unordered_map< std::string, rm::DataSourceVariable > & rm::Object::getDataSourceVariables |
( |
| ) |
const |
|
inline |
◆ getMethods()
const std::unordered_map< std::string, rm::Method > & rm::Object::getMethods |
( |
| ) |
const |
|
inline |
Python: |
---|
| rm.Object.getMethods( | | ) -> | methods map |
◆ getVariables()
const std::unordered_map< std::string, rm::Variable > & rm::Object::getVariables |
( |
| ) |
const |
|
inline |
Python: |
---|
| rm.Object.getVariables( | | ) -> | variables map |
◆ makeFrom()
Python: |
---|
| rm.Object.makeFrom( | otype | ) -> | <rm.Object object> |
◆ type()
Python: |
---|
| rm.Object.type( | | ) -> | <ObjectType> |
◆ browse_name
std::string rm::Object::browse_name {} |
浏览名称 BrowseName
- 属于非服务器层面的 ID 号,可用于完成路径搜索
- 同一个命名空间
ns
下该名称不能重复
◆ description
std::string rm::Object::description {} |
◆ display_name
std::string rm::Object::display_name {} |
展示名称 DisplayName
- 在服务器上对外展示的名字 -
en-US
- 同一个命名空间
ns
下该名称可以相同
◆ ns
uint16_t rm::Object::ns {1U} |
该类的文档由以下文件生成: