26template <
typename Traits>
31 bool Init(std::string topic_name) {
67#ifdef LIBCARLA_WITH_GTEST
68 void SetMiddlewareForTesting(std::unique_ptr<ISubscriberMiddleware> middleware) {
72 void SimulateMessageReceiptForTesting(
const msg_type &msg) {
80#ifdef LIBCARLA_WITH_GTEST
84 _middleware = MiddlewareFactory::CreateSubscriber<Traits>();
86 log_error(
"SubscriberImpl::Init failed to create middleware subscriber");
89#ifdef LIBCARLA_WITH_GTEST
bool Init(std::string topic_name, const QosProfile &qos)
Init with an explicit per-topic QoS profile (see QosProfile.h).
bool Init(std::string topic_name)
std::string GetTopicName()
typename Traits::msg_type msg_type
std::unique_ptr< ISubscriberMiddleware > _middleware
This file contains definitions of common data structures used in traffic manager.
static void log_error(Args &&... args)
Middleware-neutral QoS profile passed to IPublisherMiddleware::Init / ISubscriberMiddleware::Init whe...