Apollo 10.0
自动驾驶开放平台
|
Base class for a Writer. 更多...
#include <writer_base.h>
Public 成员函数 | |
WriterBase (const proto::RoleAttributes &role_attr) | |
Construct a new Writer Base object | |
virtual | ~WriterBase () |
virtual bool | Init ()=0 |
Init the Writer | |
virtual void | Shutdown ()=0 |
Shutdown the Writer | |
virtual bool | HasReader () |
Is there any Reader that subscribes our Channel? You can publish message when this return true | |
virtual void | GetReaders (std::vector< proto::RoleAttributes > *readers) |
Get all Readers that subscriber our writing channel | |
const std::string & | GetChannelName () const |
Get Writer's Channel name | |
const uint64_t | GetChannelId () const |
Get Writer's Channel id | |
bool | IsInit () const |
Is Writer initialized? | |
Protected 属性 | |
proto::RoleAttributes | role_attr_ |
std::mutex | lock_ |
bool | init_ |
A Writer is an object to send messages through a 'Channel'
在文件 writer_base.h 第 37 行定义.
|
inlineexplicit |
Construct a new Writer Base object
role_attr | role attributes for this Writer |
在文件 writer_base.h 第 44 行定义.
|
inlinevirtual |
在文件 writer_base.h 第 46 行定义.
|
inline |
Get Writer's Channel id
在文件 writer_base.h 第 91 行定义.
|
inline |
Get Writer's Channel name
在文件 writer_base.h 第 82 行定义.
|
inlinevirtual |
Get all Readers that subscriber our writing channel
readers | result vector of RoleAttributes |
被 apollo::cyber::Writer< MessageT > 重载.
在文件 writer_base.h 第 75 行定义.
|
inlinevirtual |
Is there any Reader that subscribes our Channel? You can publish message when this return true
被 apollo::cyber::Writer< MessageT > 重载.
在文件 writer_base.h 第 68 行定义.
|
pure virtual |
Init the Writer
在 apollo::cyber::blocker::IntraWriter< MessageT > , 以及 apollo::cyber::Writer< MessageT > 内被实现.
|
inline |
Is Writer initialized?
在文件 writer_base.h 第 99 行定义.
|
pure virtual |
Shutdown the Writer
在 apollo::cyber::blocker::IntraWriter< MessageT > , 以及 apollo::cyber::Writer< MessageT > 内被实现.
|
protected |
在文件 writer_base.h 第 107 行定义.
|
mutableprotected |
在文件 writer_base.h 第 106 行定义.
|
protected |
在文件 writer_base.h 第 105 行定义.