#include <event.hpp>
◆ Event() [1/3]
Create an event with the underlying (abstract) node representation.
◆ ~Event()
Delete the node representation of the event.
◆ Event() [2/3]
opcua::Event::Event |
( |
const Event & | | ) |
|
|
default |
◆ Event() [3/3]
opcua::Event::Event |
( |
Event && | | ) |
|
|
defaultnoexcept |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ connection() [1/2]
Server & opcua::Event::connection |
( |
| ) |
|
|
inlinenoexcept |
Get the server instance.
Definition at line 34 of file event.hpp.
◆ connection() [2/2]
const Server & opcua::Event::connection |
( |
| ) |
const |
|
inlinenoexcept |
Get the server instance.
Definition at line 39 of file event.hpp.
◆ id()
const NodeId & opcua::Event::id |
( |
| ) |
const |
|
inlinenoexcept |
Get the NodeId of the underlying node representation.
Definition at line 44 of file event.hpp.
◆ writeSourceName()
Event & opcua::Event::writeSourceName |
( |
std::string_view | sourceName | ) |
|
Set the source name (optional).
◆ writeTime()
Set the time of the event (UTC).
◆ writeSeverity()
Event & opcua::Event::writeSeverity |
( |
uint16_t | severity | ) |
|
Set the urgency/priority of the event from 1 (lowest) to 1000 (highest).
◆ writeMessage()
Set a human-readable and localizable text description of the event.
◆ writeProperty()
Set arbitrary properties of the event (for custom event types).
◆ trigger()
Trigger the event.
- Parameters
-
originId | Origin node of the event (requires EventNotifier attribute) |
- Returns
- Unique
EventId
generated by server