OPC UA 事件
更多...
#include <rmvl/opcua/event.hpp>
|
| | 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 |
| | 获取事件类型
|
◆ Event()
◆ add()
| void rm::ua::Event::add |
( |
const std::string & | browse_name, |
|
|
int | prop ) |
|
inline |
添加非默认属性至事件类型中
- 参数
-
| [in] | browse_name | 非默认属性的浏览名 BrowseName |
| [in] | prop | int 整型属性值 |
◆ data()
| const std::unordered_map< std::string, int > & rm::ua::Event::data |
( |
| ) |
const |
|
inline |
获取 int 整型的非默认属性列表
rmvl/opcua 模块支持修改的 默认属性 包括:
- 返回
- 非默认属性列表
◆ makeFrom()
◆ operator[]()
| int & rm::ua::Event::operator[] |
( |
const std::string & | browse_name | ) |
|
|
inline |
访问指定的非默认属性
- 参数
-
| [in] | browse_name | 非默认属性的浏览名 BrowseName |
- 返回
- int 整型非默认属性的左值引用
◆ type()
◆ message
| std::string rm::ua::Event::message |
◆ ns
| uint16_t rm::ua::Event::ns {1U} |
◆ severity
| uint16_t rm::ua::Event::severity {} |
◆ source_name
| std::string rm::ua::Event::source_name |