12#ifndef RTCTK_TELSUB_CORRELATOR_HPP
13#define RTCTK_TELSUB_CORRELATOR_HPP
33 using Alloc = std::pmr::polymorphic_allocator<std::byte>;
50 std::optional<CorrelationError>
Poll(std::chrono::milliseconds
timeout,
54 return m_last_correlated_sample;
62 using TimePoint = ClockType::time_point;
100 TimePoint m_poll_until_time;
102 std::
pmr::
map<std::
string,
size_t> m_indices;
Component metrics interface.
Definition componentMetricsIf.hpp:85
Container of DDS samples and associated sample information.
Definition agnosticDataSamples.hpp:77
Interface for correlator implemementations that takes new data samples from DDS and performs correlat...
Definition correlatorIf.hpp:60
Implements a correlator.
Definition correlator.hpp:31
void Reset() RTCTK_NOEXCEPT override
Resets internal state.
Definition correlator.cpp:145
std::optional< std::uint32_t > GetLastSampleId() const RTCTK_NOEXCEPT override
Definition correlator.hpp:53
std::pmr::polymorphic_allocator< std::byte > Alloc
Definition correlator.hpp:33
std::optional< CorrelationError > Poll(std::chrono::milliseconds timeout, const DataSamplesView *&samples) RTCTK_NOEXCEPT override
The strategy is to correlate on existing data, if possible before taking more samples.
Definition correlator.cpp:154
Correlator(const CorrelatorParams ¶ms, std::unique_ptr< DdsWaitSetIf > dds_subscriber, componentFramework::ComponentMetricsIf &metrics, const Alloc &alloc={})
Definition correlator.cpp:130
void CheckDdsConnections() override
Definition correlator.cpp:274
Base class abstracting DDS communication code.
Definition ddsWaitSetIf.hpp:93
#define RTCTK_NOEXCEPT
Definition config.hpp:63
Header file for ComponentMetricsIf.
elt::mal::future< std::string > InjectReqRepEvent(StateMachineEngine &engine)
Definition malEventInjector.hpp:23
std::variant< CorrelationFailedError, DdsWaitSetError > CorrelationError
Definition correlatorIf.hpp:37
Placeholder for correlator parameters.
Definition correlatorIf.hpp:45
A set of correlated agnostic non-owning data samples references.
Definition dataSampleView.hpp:52