![]() |
CommRaT 2.0.0
C++20 Real-Time Messaging Framework
|
Phase 9: Input Metadata Manager CRTP Mixin. More...
#include <commrat/module/metadata/input_metadata_manager.hpp>
Protected Member Functions | |
| template<typename T > | |
| void | update_input_metadata (std::size_t index, const TimsMessage< T > &received, bool is_new) |
| Update metadata for a specific input index. | |
| void | mark_input_invalid (std::size_t index) |
| Mark input metadata as invalid (getData failed) | |
Phase 9: Input Metadata Manager CRTP Mixin.
Manages input metadata storage and updates:
Used by loop executors and multi-input processors to maintain accurate timestamp/freshness tracking for all inputs.
| ModuleType | The derived Module class (CRTP) |
Definition at line 22 of file input_metadata_manager.hpp.
|
inlineprotected |
Mark input metadata as invalid (getData failed)
Called when a secondary input's getData() fails in multi-input synchronization. Marks the input as invalid and not fresh.
| index | Input index (0-based) |
Definition at line 59 of file input_metadata_manager.hpp.
|
inlineprotected |
Update metadata for a specific input index.
Helper method to populate metadata from received TimsMessage. Called by loop functions before invoking process() methods.
| T | Payload type |
| index | Input index (0-based) |
| received | Received TimsMessage with header and payload |
| is_new | True if freshly received, false if reused/stale |
Definition at line 36 of file input_metadata_manager.hpp.