|
srs-control 0.2.2
|
#include <BaseTask.hpp>

Public Types | |
| using | InputType = Input |
| using | OutputType = Output |
| using | RunResult = std::expected<OutputType, std::string_view> |
Public Member Functions | |
| BaseTask (std::string_view name, DataConvertOptions prev_convert, std::size_t n_lines=1) | |
| ~BaseTask () | |
| auto | get_n_lines () const -> std::size_t |
| auto | get_required_conversion () const -> DataConvertOptions |
| auto | get_name () const -> std::string_view |
| auto | get_name_str () const -> std::string |
| void | set_report (AppReport *task_report) |
| auto | run_once (this auto &&self, const OutputTo< InputType > auto &prev_data_converter, std::size_t line_number=0) -> RunResult |
Protected Member Functions | |
| auto | get_report () -> AppReport * |
Private Attributes | |
| process::DataConvertOptions | previous_conversion_ |
| AppReport * | task_report_ = nullptr |
| std::vector< AppReport::TaskStat > | stats_ |
| std::chrono::steady_clock | clock_ |
| std::vector< std::chrono::time_point< std::chrono::steady_clock, std::chrono::nanoseconds > > | last_time_points_ |
| std::string | name_ = "empty" |
| std::size_t | n_lines_ = 1 |
Definition at line 24 of file BaseTask.hpp.
| using srs::process::BaseTask< Input, Output >::InputType = Input |
Definition at line 27 of file BaseTask.hpp.
| using srs::process::BaseTask< Input, Output >::OutputType = Output |
Definition at line 28 of file BaseTask.hpp.
| using srs::process::BaseTask< Input, Output >::RunResult = std::expected<OutputType, std::string_view> |
Definition at line 32 of file BaseTask.hpp.
|
inlineexplicit |
Definition at line 34 of file BaseTask.hpp.
|
inline |
Definition at line 44 of file BaseTask.hpp.
|
inlinenodiscard |
Definition at line 52 of file BaseTask.hpp.
|
inlinenodiscard |
Definition at line 54 of file BaseTask.hpp.
|
inlinenodiscard |
Definition at line 55 of file BaseTask.hpp.
|
inlineprotected |
Definition at line 81 of file BaseTask.hpp.
|
inlinenodiscard |
Definition at line 53 of file BaseTask.hpp.
|
inline |
Definition at line 63 of file BaseTask.hpp.
|
inline |
Definition at line 57 of file BaseTask.hpp.
|
private |
Definition at line 87 of file BaseTask.hpp.
|
private |
Definition at line 88 of file BaseTask.hpp.
|
private |
Definition at line 90 of file BaseTask.hpp.
|
private |
Definition at line 89 of file BaseTask.hpp.
|
private |
Definition at line 84 of file BaseTask.hpp.
|
private |
Definition at line 86 of file BaseTask.hpp.
|
private |
Definition at line 85 of file BaseTask.hpp.