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

Single continuous input specification. More...

#include <commrat/module/io_spec.hpp>

Public Types

using PayloadType = T
 

Static Public Attributes

static constexpr size_t count = 1
 

Detailed Description

template<typename T>
struct commrat::Input< T >

Single continuous input specification.

Specifies that a module receives exactly one input type from another module. The module subscribes to a producer and processes each received message.

Template Parameters
TThe payload type to receive

Example:

class FilterModule : public Module<Registry, Output<FilteredData>, Input<RawData>> {
FilteredData process(const RawData& input) override {
return apply_filter(input);
}
};
Timestamp Management Architecture.

Definition at line 143 of file io_spec.hpp.

Member Typedef Documentation

◆ PayloadType

template<typename T >
using commrat::Input< T >::PayloadType = T

Definition at line 144 of file io_spec.hpp.

Member Data Documentation

◆ count

template<typename T >
constexpr size_t commrat::Input< T >::count = 1
staticconstexpr

Definition at line 145 of file io_spec.hpp.


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