An event that triggers before the program shuts down. More...
#include <xronos/sdk/shutdown.hh>
Public Member Functions | |
Shutdown (std::string_view name, ReactorContext context) | |
Construct a new Shutdown object. | |
![]() | |
auto | name () const noexcept -> const std::string & |
The name of the current element. | |
auto | fqn () const noexcept -> const std::string & |
The fully qualified name of the current element. | |
![]() | |
virtual | ~EventSource ()=default |
Correct deletion of an instance of a derived class is permitted. | |
virtual | ~EventSource ()=default |
Correct deletion of an instance of a derived class is permitted. | |
An event that triggers before the program shuts down.
xronos::sdk::Shutdown::Shutdown | ( | std::string_view | name, |
ReactorContext | context ) |
Construct a new Shutdown
object.
name | The name of the shutdown event. |
context | The current reactor's initialization context, which can be obtained using the Reactor::context method. |