Base Class for Reader Reader is identified by one apollo::cyber::proto::RoleAttribute, it contains the channel_name, channel_id that we subscribe, and host_name, process_id and node that we are located, and qos that describes our transportation quality.
More...
#include <reader_base.h>
Base Class for Reader Reader is identified by one apollo::cyber::proto::RoleAttribute, it contains the channel_name, channel_id that we subscribe, and host_name, process_id and node that we are located, and qos that describes our transportation quality.
◆ ReaderBase()
apollo::cyber::ReaderBase::ReaderBase |
( |
const proto::RoleAttributes & |
role_attr | ) |
|
|
inlineexplicit |
◆ ~ReaderBase()
virtual apollo::cyber::ReaderBase::~ReaderBase |
( |
| ) |
|
|
inlinevirtual |
◆ ChannelId()
uint64_t apollo::cyber::ReaderBase::ChannelId |
( |
| ) |
const |
|
inline |
Get Reader's Channel id.
- Returns
- uint64_t channel id
◆ ClearData()
virtual void apollo::cyber::ReaderBase::ClearData |
( |
| ) |
|
|
pure virtual |
◆ Empty()
virtual bool apollo::cyber::ReaderBase::Empty |
( |
| ) |
const |
|
pure virtual |
◆ GetChannelName()
const std::string& apollo::cyber::ReaderBase::GetChannelName |
( |
| ) |
const |
|
inline |
Get Reader's Channel name.
- Returns
- const std::string& channel name
◆ GetDelaySec()
virtual double apollo::cyber::ReaderBase::GetDelaySec |
( |
| ) |
const |
|
pure virtual |
◆ GetWriters()
virtual void apollo::cyber::ReaderBase::GetWriters |
( |
std::vector< proto::RoleAttributes > * |
writers | ) |
|
|
inlinevirtual |
◆ HasReceived()
virtual bool apollo::cyber::ReaderBase::HasReceived |
( |
| ) |
const |
|
pure virtual |
◆ HasWriter()
virtual bool apollo::cyber::ReaderBase::HasWriter |
( |
| ) |
|
|
inlinevirtual |
Query is there any writer that publish the subscribed channel.
- Returns
- true if there is at least one Writer publish the channel
-
false if there is no Writer publish the channel
Reimplemented in apollo::cyber::Reader< MessageT >.
◆ Init()
virtual bool apollo::cyber::ReaderBase::Init |
( |
| ) |
|
|
pure virtual |
◆ IsInit()
bool apollo::cyber::ReaderBase::IsInit |
( |
| ) |
const |
|
inline |
Query whether the Reader is initialized.
- Returns
- true if the Reader has been inited
-
false if the Reader has not been inited
◆ Observe()
virtual void apollo::cyber::ReaderBase::Observe |
( |
| ) |
|
|
pure virtual |
◆ PendingQueueSize()
virtual uint32_t apollo::cyber::ReaderBase::PendingQueueSize |
( |
| ) |
const |
|
pure virtual |
◆ QosProfile()
const proto::QosProfile& apollo::cyber::ReaderBase::QosProfile |
( |
| ) |
const |
|
inline |
Get qos profile. You can see qos description.
- Returns
- const proto::QosProfile& result qos
◆ Shutdown()
virtual void apollo::cyber::ReaderBase::Shutdown |
( |
| ) |
|
|
pure virtual |
◆ init_
std::atomic<bool> apollo::cyber::ReaderBase::init_ |
|
protected |
◆ role_attr_
proto::RoleAttributes apollo::cyber::ReaderBase::role_attr_ |
|
protected |
The documentation for this class was generated from the following file: