![]() |
RMVL
2.6.0-dev
Robotic Manipulation and Vision Library
|
OPC UA 事件 更多...
#include <rmvl/opcua/event.hpp>
Public 成员函数 | |
| Event ()=default | |
| 构造 Event 对象类型 | |
| void | add (const std::string &browse_name, int prop) |
| 添加非默认属性至事件类型中 | |
| int & | operator[] (const std::string &browse_name) |
| 访问指定的非默认属性 | |
| const std::unordered_map< std::string, int > & | data () const |
| 获取 int 整型的非默认属性列表 | |
| EventType | type () const |
| 获取事件类型 | |
静态 Public 成员函数 | |
| static Event | makeFrom (const EventType &etype) |
| 从事件类型创建新的事件 | |
Public 属性 | |
| uint16_t | ns {1U} |
| 命名空间索引,默认为 1 | |
| std::string | source_name |
| 默认属性:事件源名称 | |
| std::string | message |
| 默认属性:事件消息,包含关于事件的描述 | |
| uint16_t | severity {} |
| 默认属性:事件严重程度 | |
OPC UA 事件
|
default |
构造 Event 对象类型
|
inline |
添加非默认属性至事件类型中
| [in] | browse_name | 非默认属性的浏览名 BrowseName |
| [in] | prop | int 整型属性值 |
|
inline |
获取 int 整型的非默认属性列表
rmvl/opcua 模块支持修改的 默认属性 包括:
| BrowseName | 类型 | 含义 | 参考 |
|---|---|---|---|
| SourceName | String | 事件源名称 | Event::source_name |
| Message | String | 事件消息,包含关于事件的描述 | Event::message |
| Severity | UInt16 | 事件严重程度 | Event::severity |
|
inline |
访问指定的非默认属性
| [in] | browse_name | 非默认属性的浏览名 BrowseName |
|
inline |
获取事件类型
| std::string rm::ua::Event::message |
默认属性:事件消息,包含关于事件的描述
| uint16_t rm::ua::Event::ns {1U} |
命名空间索引,默认为 1
| uint16_t rm::ua::Event::severity {} |
默认属性:事件严重程度
| std::string rm::ua::Event::source_name |
默认属性:事件源名称