Non-template base class for reactions.
More...
#include <xronos/sdk/reaction.hh>
|
virtual | ~BaseReaction ()=default |
| Correct deletion of an instance of a derived class is permitted.
|
|
|
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.
|
|
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: