RTC Toolkit 6.0.0-pre2
Loading...
Searching...
No Matches
mockCorrelatorIf.hpp
Go to the documentation of this file.
1
12#ifndef RTCTK_TELSUB_MOCKCORRELATORIF_HPP
13#define RTCTK_TELSUB_MOCKCORRELATORIF_HPP
14#include <gmock/gmock.h>
16
17namespace rtctk::telSub {
19 MOCK_METHOD(std::optional<CorrelationError>, Poll,
20 (std::chrono::milliseconds, const DataSamplesView*&), (noexcept));
21 MOCK_METHOD(void, Reset, (), (noexcept));
23 MOCK_METHOD(std::optional<std::uint32_t>, GetLastSampleId, (), (const,noexcept));
24};
25
26} // namespace rtctk::telSub
27#endif // #ifndef RTCTK_TELSUB_MOCKCORRELATORIF_HPP
Interface for correlator implemementations that takes new data samples from DDS and performs correlat...
Definition correlatorIf.hpp:58
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:24
A set of correlated agnostic non-owning data samples references.
Definition dataSampleView.hpp:52
Definition mockCorrelatorIf.hpp:18
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,())