9#include "introspect.hpp"
43 return stream <<
event.message;
55 never_event() =
delete;
66 [[nodiscard]]
auto introspect_graph() const -> processor_graph {
67 return processor_graph().push_entry_point(
this);
70 template <
typename Event>
void handle(Event
const & ) {}
75template <
typename Downstream>
class source_nothing {
77 Downstream downstream;
80 explicit source_nothing(Downstream downstream)
81 : downstream(std::move(downstream)) {}
83 [[nodiscard]]
auto introspect_node() const -> processor_info {
84 return processor_info(
this,
"source_nothing");
87 [[nodiscard]]
auto introspect_graph() const -> processor_graph {
88 return downstream.introspect_graph().push_entry_point(
this);
93 throw std::logic_error(
94 "source_nothing may not be flushed a second time");
115inline auto sink_all() {
return internal::sink_all(); }
132 return internal::source_nothing<Downstream>(std::move(downstream));
Value type representing metadata of a processor.
Definition introspect.hpp:59
auto sink_all()
Create a processor that sinks any event and the end-of-stream and does nothing.
Definition core.hpp:115
auto source_nothing(Downstream downstream)
Create a processor that sources an empty stream.
Definition core.hpp:131
libtcspc namespace.
Definition acquire.hpp:30
An event type indicating a warning.
Definition core.hpp:31
friend auto operator==(warning_event const &lhs, warning_event const &rhs) noexcept -> bool=default
Equality comparison operator.
friend auto operator<<(std::ostream &stream, warning_event const &event) -> std::ostream &
Stream insertion operator.
Definition core.hpp:41
std::string message
A human-readable message describing the warning.
Definition core.hpp:33