59 std::vector<DataProcessorSpec> workflow;
66 outputs.make<
unsigned int>(
Output{
"TST",
"SAMPLE", 1}) = 1;
67 outputs.make<
unsigned int>(
Output{
"TST",
"SAMPLE", 2}) = 2;
69 control.endOfStream();
73 {
InputSpec{
"timer",
"TST",
"TIMER", 0, Lifetime::Timer}},
74 {
OutputSpec{
"TST",
"SAMPLE", 1, Lifetime::Timeframe},
75 OutputSpec{
"TST",
"SAMPLE", 2, Lifetime::Timeframe}},
77 {
ConfigParamSpec{
"period-timer", VariantType::Int, 100000, {
"timer"}}}});
85 auto const* dh = DataRefUtils::getHeader<DataHeader*>(
ref);
87 auto const&
data = inputs.get<
unsigned int>(
ref);
90 LOG(info) << fmt::format(
"forwarded {}/{}/{} with data {}",
91 dh->dataOrigin.as<std::string>(),
92 dh->dataDescription.as<std::string>(),
102 DataDescriptorMatcher::Op::And,
104 std::make_unique<DataDescriptorMatcher>(
105 DataDescriptorMatcher::Op::And,
107 std::make_unique<DataDescriptorMatcher>(
108 DataDescriptorMatcher::Op::And,
109 std::make_unique<DataDescriptorMatcher>(
110 DataDescriptorMatcher::Op::Not,
112 std::make_unique<DataDescriptorMatcher>(
113 DataDescriptorMatcher::Op::Just,
117 {
InputSpec{
"in", std::move(processorInputMatcher), Lifetime::Timeframe}},
118 {
OutputSpec{{
"out"},
"TST",
"SAMPLE", 0, Lifetime::Timeframe}},
127 auto const* dh = DataRefUtils::getHeader<DataHeader*>(
ref);
129 auto const&
data = inputs.get<
unsigned int>(
ref);
131 LOG(info) << fmt::format(
"received {}/{}/{} with data {}",
132 dh->dataOrigin.as<std::string>(),
133 dh->dataDescription.as<std::string>(),
134 dh->subSpecification,
142 {
InputSpec{
"in",
"TST",
"SAMPLE", 0, Lifetime::Timeframe}},
A typesafe reference to an element of the context.