RTC Toolkit 5.0.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
MockEventService Class Reference

#include <helpers.hpp>

Inheritance diagram for MockEventService:
rtctk::componentFramework::EventServiceIf rtctk::componentFramework::EventServiceIf

Public Member Functions

 MockEventService ()
 
std::unique_ptr< EventPublisherIfMakePublisher (const std::string &topic) override
 Creates a new publisher for a specified topic.
 
std::unique_ptr< EventSubscriberIfMakeSubscriber (const std::string &topic) override
 Creates a new subscriber for a specified topic.
 
 MockEventService ()
 
std::unique_ptr< EventPublisherIfMakePublisher (const std::string &topic) override
 Creates a new publisher for a specified topic.
 
std::unique_ptr< EventSubscriberIfMakeSubscriber (const std::string &topic) override
 Creates a new subscriber for a specified topic.
 
- Public Member Functions inherited from rtctk::componentFramework::EventServiceIf
virtual ~EventServiceIf ()=default
 

Public Attributes

std::map< std::string, MockEventPublisher * > pub
 
std::map< std::string, MockEventSubscriber * > sub
 

Constructor & Destructor Documentation

◆ MockEventService() [1/2]

MockEventService::MockEventService ( )
inline

◆ MockEventService() [2/2]

MockEventService::MockEventService ( )
inline

Member Function Documentation

◆ MakePublisher() [1/2]

std::unique_ptr< EventPublisherIf > MockEventService::MakePublisher ( const std::string & topic)
inlineoverridevirtual

Creates a new publisher for a specified topic.

Parameters
[in]topicThe topic name.

Implements rtctk::componentFramework::EventServiceIf.

◆ MakePublisher() [2/2]

std::unique_ptr< EventPublisherIf > MockEventService::MakePublisher ( const std::string & topic)
inlineoverridevirtual

Creates a new publisher for a specified topic.

Parameters
[in]topicThe topic name.

Implements rtctk::componentFramework::EventServiceIf.

◆ MakeSubscriber() [1/2]

std::unique_ptr< EventSubscriberIf > MockEventService::MakeSubscriber ( const std::string & topic)
inlineoverridevirtual

Creates a new subscriber for a specified topic.

Parameters
[in]topicThe topic name.

Implements rtctk::componentFramework::EventServiceIf.

◆ MakeSubscriber() [2/2]

std::unique_ptr< EventSubscriberIf > MockEventService::MakeSubscriber ( const std::string & topic)
inlineoverridevirtual

Creates a new subscriber for a specified topic.

Parameters
[in]topicThe topic name.

Implements rtctk::componentFramework::EventServiceIf.

Member Data Documentation

◆ pub

std::map< std::string, MockEventPublisher * > MockEventService::pub

◆ sub

std::map< std::string, MockEventSubscriber * > MockEventService::sub

The documentation for this class was generated from the following files: