Template Class MonitorController
Defined in File monitor_controller.hpp
-
template<typename MessageT>
class MonitorController A controller class that manages the display of progress bars that used by MonitorStage.
Public Functions
-
MonitorController(const std::string &description, std::string unit = "messages", indicators::Color text_color = indicators::Color::cyan, indicators::FontStyle font_style = indicators::FontStyle::bold, std::optional<std::function<size_t(MessageT)>> determine_count_fn = std::nullopt)
Construct a new Monitor Controller object.
- Parameters
description – : A text label displayed on the left side of the progress bars
unit – : the unit of message count
determine_count_fn – : A function that computes the count for each incoming message
-
auto auto_count_fn() -> std::optional<std::function<size_t(MessageT)>>
-
void sink_on_completed()
-
MonitorController(const std::string &description, std::string unit = "messages", indicators::Color text_color = indicators::Color::cyan, indicators::FontStyle font_style = indicators::FontStyle::bold, std::optional<std::function<size_t(MessageT)>> determine_count_fn = std::nullopt)