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