xentara-plugin v1.2.1
The Xentara Plugin Framework
|
A task that calls operational() for all stages. More...
#include <process/StageAgnosticTask.hpp>
Public Member Functions | |
auto | stages () const -> Stages override |
Reiplementation of Task::stages() | |
auto | prepareStartup (const ExecutionContext &context) -> Status override |
Reiplementation of Task::prepareStartup() | |
auto | startup (const ExecutionContext &context) -> Status override |
Reiplementation of Task::startup() | |
auto | preparePreOperational (const ExecutionContext &context) -> Status override |
Reiplementation of Task::preparePreOperational() | |
auto | preOperational (const ExecutionContext &context) -> Status override |
Reiplementation of Task::preOperational() | |
auto | preparePostOperational (const ExecutionContext &context) -> Status override |
Reiplementation of Task::preparePostOperational() | |
auto | postOperational (const ExecutionContext &context) -> Status override |
Reiplementation of Task::postOperational() | |
auto | prepareShutdown (const ExecutionContext &context) -> Status override |
Reiplementation of Task::prepareShutdown() | |
auto | shutdown (const ExecutionContext &context) -> Status override |
Reiplementation of Task::shutdown() | |
Public Member Functions inherited from xentara::process::Task | |
virtual | ~Task ()=0 |
Virtual destructor. | |
virtual auto | timing () const -> Timing |
Called by the framework to get the timing requirements. | |
virtual auto | schedule (const Track &track, std::optional< TimerSchedule > timerSchedule) -> void |
Called by the framework when the task is scheduled in an execution pipeline. | |
virtual auto | operational (const ExecutionContext &context) -> void=0 |
Called by the framework to perform the operational stage. | |
Public Member Functions inherited from xentara::utils::tools::DisableCopy | |
constexpr | DisableCopy () noexcept=default |
DisableCopy (const DisableCopy &)=delete | |
DisableCopy & | operator= (const DisableCopy &)=delete |
Additional Inherited Members | |
Public Types inherited from xentara::process::Task | |
enum class | Timing { RealTime , RealTimeCompatible , Conventional } |
The timing contraints of the task. More... | |
enum class | Stage { Startup , PreOperational , Operational , PostOperational , Shutdown , Suspended , Terminated , internal } |
The operational stages of Xentara. More... | |
enum class | Status { Pending , Ready , Completed } |
The status a task within an operational stage. More... | |
using | Stages = utils::core::Flags< Stage > |
A combination of operational stages. | |
Static Public Attributes inherited from xentara::process::Task | |
static const std::string_view | kReconnect |
The standard name for the reconnect task of an I/O component. | |
A task that calls operational() for all stages.
This class can be used as a base class for tasks that execute the same action for all stages. Each of the prepare functions does nothing, and returns Task::Status::Ready. Each of the regular functions calls operational(), and also returns Task::Status::Ready.
|
overridevirtual |
Reiplementation of Task::postOperational()
This implementation calls operational() and returns Status::Ready
Reimplemented from xentara::process::Task.
|
overridevirtual |
Reiplementation of Task::preOperational()
This implementation calls operational() and returns Status::Ready
Reimplemented from xentara::process::Task.
|
overridevirtual |
Reiplementation of Task::preparePostOperational()
This implementation does nothing and returns Status::Ready
Reimplemented from xentara::process::Task.
|
overridevirtual |
Reiplementation of Task::preparePreOperational()
This implementation does nothing and returns Status::Ready
Reimplemented from xentara::process::Task.
|
overridevirtual |
Reiplementation of Task::prepareShutdown()
This implementation does nothing and returns Status::Ready
Reimplemented from xentara::process::Task.
|
overridevirtual |
Reiplementation of Task::prepareStartup()
This implementation does nothing and returns Status::Ready.
Reimplemented from xentara::process::Task.
|
overridevirtual |
Reiplementation of Task::shutdown()
This implementation calls operational() and returns Status::Ready
Reimplemented from xentara::process::Task.
|
overridevirtual |
Reiplementation of Task::stages()
This implementation returns all stages
Reimplemented from xentara::process::Task.
|
overridevirtual |
Reiplementation of Task::startup()
This implementation calls operational() and returns Status::Ready
Reimplemented from xentara::process::Task.