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

Input metadata structure returned by accessor methods. More...

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

Static Public Member Functions

static constexpr const char * type_name ()
 

Public Attributes

uint64_t timestamp
 Message timestamp (from TimsHeader)
 
uint32_t sequence_number
 Message sequence number.
 
uint32_t message_id
 Message type ID.
 
bool is_new_data
 True if freshly received, false if stale/reused.
 
bool is_valid
 True if getData succeeded, false if failed.
 

Detailed Description

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

Input metadata structure returned by accessor methods.

Contains timestamp, sequence number, and freshness information about a received input message. Available for modules with continuous inputs.

Template Parameters
TThe payload type of the input

Definition at line 36 of file input_metadata.hpp.

Member Function Documentation

◆ type_name()

template<typename T >
static constexpr const char * commrat::InputMetadata< T >::type_name ( )
inlinestaticconstexpr

Definition at line 44 of file input_metadata.hpp.

Member Data Documentation

◆ is_new_data

template<typename T >
bool commrat::InputMetadata< T >::is_new_data

True if freshly received, false if stale/reused.

Definition at line 40 of file input_metadata.hpp.

◆ is_valid

template<typename T >
bool commrat::InputMetadata< T >::is_valid

True if getData succeeded, false if failed.

Definition at line 41 of file input_metadata.hpp.

◆ message_id

template<typename T >
uint32_t commrat::InputMetadata< T >::message_id

Message type ID.

Definition at line 39 of file input_metadata.hpp.

◆ sequence_number

template<typename T >
uint32_t commrat::InputMetadata< T >::sequence_number

Message sequence number.

Definition at line 38 of file input_metadata.hpp.

◆ timestamp

template<typename T >
uint64_t commrat::InputMetadata< T >::timestamp

Message timestamp (from TimsHeader)

Definition at line 37 of file input_metadata.hpp.


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