RTC Toolkit 6.0.0
Loading...
Searching...
No Matches
mockCorrelatorIf.hpp
Go to the documentation of this file.
1
11#ifndef RTCTK_TELSUB_MOCKCORRELATORIF_HPP
12#define RTCTK_TELSUB_MOCKCORRELATORIF_HPP
13#include <gmock/gmock.h>
15
16namespace rtctk::telSub {
18 MOCK_METHOD(std::optional<CorrelationError>,
19 Poll,
20 (std::chrono::milliseconds, const DataSamplesView*&),
21 (noexcept));
22 MOCK_METHOD(void, Reset, (), (noexcept));
24 MOCK_METHOD(std::optional<std::uint32_t>, GetLastSampleId, (), (const, noexcept));
25};
26
27} // namespace rtctk::telSub
28#endif // #ifndef RTCTK_TELSUB_MOCKCORRELATORIF_HPP
Interface for correlator implemementations that takes new data samples from DDS and performs correlat...
Definition correlatorIf.hpp:57
virtual void CheckDdsConnections()=0
virtual void Reset() noexcept=0
Resets internal state.
virtual std::optional< std::uint32_t > GetLastSampleId() const noexcept=0
virtual std::optional< CorrelationError > Poll(std::chrono::milliseconds timeout, const DataSamplesView *&view) noexcept=0
Perform correlation on existing or newly taken data samples.
Declares CorrelatorIf.
Definition main.cpp:23
A set of correlated agnostic non-owning data samples references.
Definition dataSampleView.hpp:51
Definition mockCorrelatorIf.hpp:17
MOCK_METHOD(std::optional< std::uint32_t >, GetLastSampleId,(),(const, noexcept))
MOCK_METHOD(std::optional< CorrelationError >, Poll,(std::chrono::milliseconds, const DataSamplesView *&),(noexcept))
MOCK_METHOD(void, Reset,(),(noexcept))
MOCK_METHOD(void, CheckDdsConnections,())