RTC Toolkit 4.0.2
Loading...
Searching...
No Matches
mockDdsWaitSet.hpp
Go to the documentation of this file.
1
12#ifndef RTCTK_TELSUB_MOCKDDSSUBSCRIBERIF_HPP
13#define RTCTK_TELSUB_MOCKDDSSUBSCRIBERIF_HPP
14
15#include <gmock/gmock.h>
17
18namespace rtctk::telSub {
19
22 MOCK_METHOD1(Take, std::error_code(std::chrono::nanoseconds));
24 MOCK_CONST_METHOD1(GetTopicName, std::string(size_t));
25};
26
27} // namespace rtctk::telSub
28#endif // #ifndef RTCTK_TELSUB_MOCKDDSSUBSCRIBERIF_HPP
Container of DDS samples and associated sample information.
Definition: agnosticDataSamples.hpp:74
Base class abstracting DDS communication code.
Definition: ddsWaitSetIf.hpp:62
virtual std::string GetTopicName(size_t index) const RTCTK_NOEXCEPT=0
Returns a string containing the name of a configured topic.
virtual std::error_code Take(std::chrono::nanoseconds timeout) RTCTK_NOEXCEPT=0
Takes new samples from DDS readers and updates data structure accessable from GetSamples()
virtual size_t GetNumberOfTopics() const RTCTK_NOEXCEPT=0
Returns the number of configured topics.
virtual AgnosticDataSamples & GetSamples() RTCTK_NOEXCEPT=0
Returns reference to data structure holding taken data samples.
Declares DdsWaitSetIf.
Definition: main.cpp:18
Definition: mockDdsWaitSet.hpp:20
MOCK_METHOD0(GetSamples, AgnosticDataSamples &())
MOCK_CONST_METHOD1(GetTopicName, std::string(size_t))
MOCK_CONST_METHOD0(GetNumberOfTopics, size_t())
MOCK_METHOD1(Take, std::error_code(std::chrono::nanoseconds))