Non-template base class for reactions.
More...
#include <xronos/sdk/reaction.hh>
|
auto | context () noexcept -> ReactionContext |
| Get the context object that is needed to construct the reaction's members.
|
|
|
virtual void | handler ()=0 |
| The body of the reaction.
|
|
|
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 | ~Element ()=default |
| Virtual destructor.
|
|
Non-template base class for reactions.
Application code should inherit from Reaction
instead of directly from BaseReaction
.
◆ context()
|
nodiscardprotectednoexcept |
Get the context object that is needed to construct the reaction's members.
- Returns
- ReactionContext This reaction's initialization context.
◆ handler()
virtual void xronos::sdk::BaseReaction::handler |
( |
| ) |
|
|
privatepure virtual |
The body of the reaction.
This method should be overridden by application code to provide the functionality of the reaction. This handler will be called by the framework when the reaction is triggered.
The documentation for this class was generated from the following file: