CommRaT 2.0.0
C++20 Real-Time Messaging Framework
Loading...
Searching...
No Matches
commrat::Outputs< Ts > Struct Template Reference

Multiple outputs specification. More...

#include <commrat/module/io_spec.hpp>

Public Types

using PayloadTypes = std::tuple< Ts... >
 

Static Public Attributes

static constexpr size_t count = sizeof...(Ts)
 

Detailed Description

template<typename... Ts>
struct commrat::Outputs< Ts >

Multiple outputs specification.

Specifies that a module produces multiple output types. Each output type has its own subscriber list and is published independently.

Template Parameters
Ts...The payload types to be published

Example:

class ProcessingModule : public Module<Registry,
Outputs<ProcessedData, Diagnostics>,
Input<RawData>> {
void process(const RawData& raw, ProcessedData& proc, Diagnostics& diag) override {
proc = filter(raw);
diag = calculate_stats(raw);
}
};
Timestamp Management Architecture.

Definition at line 94 of file io_spec.hpp.

Member Typedef Documentation

◆ PayloadTypes

template<typename... Ts>
using commrat::Outputs< Ts >::PayloadTypes = std::tuple<Ts...>

Definition at line 95 of file io_spec.hpp.

Member Data Documentation

◆ count

template<typename... Ts>
constexpr size_t commrat::Outputs< Ts >::count = sizeof...(Ts)
staticconstexpr

Definition at line 96 of file io_spec.hpp.


The documentation for this struct was generated from the following file: