Apollo  6.0
Open source self driving car software
Public Member Functions | List of all members
apollo::cyber::ReceiverManager< MessageT > Class Template Reference

One Channel is related to one Receiver. ReceiverManager is in charge of attaching one Receiver to its responding Channel. We pass a DataDispatche's callback func to this Receiver so when a message is received, it will be push to the ChannelBuffer, and DataVisitor will Fetch data and pass to Reader's callback func. More...

#include <reader_base.h>

Collaboration diagram for apollo::cyber::ReceiverManager< MessageT >:
Collaboration graph

Public Member Functions

 ~ReceiverManager ()
 
auto GetReceiver (const proto::RoleAttributes &role_attr) -> typename std::shared_ptr< transport::Receiver< MessageT >>
 Get the Receiver object. More...
 

Detailed Description

template<typename MessageT>
class apollo::cyber::ReceiverManager< MessageT >

One Channel is related to one Receiver. ReceiverManager is in charge of attaching one Receiver to its responding Channel. We pass a DataDispatche's callback func to this Receiver so when a message is received, it will be push to the ChannelBuffer, and DataVisitor will Fetch data and pass to Reader's callback func.

Template Parameters
MessageTMessage Type.

Constructor & Destructor Documentation

◆ ~ReceiverManager()

template<typename MessageT >
apollo::cyber::ReceiverManager< MessageT >::~ReceiverManager ( )
inline

Member Function Documentation

◆ GetReceiver()

template<typename MessageT >
auto apollo::cyber::ReceiverManager< MessageT >::GetReceiver ( const proto::RoleAttributes &  role_attr) -> typename std::shared_ptr<transport::Receiver<MessageT>>

Get the Receiver object.

Parameters
role_attrthe attribute that the Receiver has
Returns
std::shared_ptr<transport::Receiver<MessageT>> result Receiver

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