CommRaT 2.0.0
C++20 Real-Time Messaging Framework
Loading...
Searching...
No Matches
commrat::InputMetadataManager< ModuleType > Class Template Reference

Phase 9: Input Metadata Manager CRTP Mixin. More...

#include <commrat/module/metadata/input_metadata_manager.hpp>

Inheritance diagram for commrat::InputMetadataManager< ModuleType >:
commrat::Module< UserRegistry, OutputSpec_, InputSpec_, CommandTypes... >

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)
 

Detailed Description

template<typename ModuleType>
class commrat::InputMetadataManager< ModuleType >

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.

Template Parameters
ModuleTypeThe derived Module class (CRTP)

Definition at line 22 of file input_metadata_manager.hpp.

Member Function Documentation

◆ mark_input_invalid()

template<typename ModuleType >
void commrat::InputMetadataManager< ModuleType >::mark_input_invalid ( std::size_t  index)
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.

Parameters
indexInput index (0-based)

Definition at line 59 of file input_metadata_manager.hpp.

◆ update_input_metadata()

template<typename ModuleType >
template<typename T >
void commrat::InputMetadataManager< ModuleType >::update_input_metadata ( std::size_t  index,
const TimsMessage< T > &  received,
bool  is_new 
)
inlineprotected

Update metadata for a specific input index.

Helper method to populate metadata from received TimsMessage. Called by loop functions before invoking process() methods.

Template Parameters
TPayload type
Parameters
indexInput index (0-based)
receivedReceived TimsMessage with header and payload
is_newTrue if freshly received, false if reused/stale

Definition at line 36 of file input_metadata_manager.hpp.


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