|
Apollo
6.0
Open source self driving car software
|
#include <writer.h>


Public Types | |
| using | TransmitterPtr = std::shared_ptr< transport::Transmitter< MessageT > > |
| using | ChangeConnection = typename service_discovery::Manager::ChangeConnection |
Public Member Functions | |
| Writer (const proto::RoleAttributes &role_attr) | |
| Construct a new Writer object. More... | |
| virtual | ~Writer () |
| bool | Init () override |
| Init the Writer. More... | |
| void | Shutdown () override |
| Shutdown the Writer. More... | |
| virtual bool | Write (const MessageT &msg) |
| Write a MessageT instance. More... | |
| virtual bool | Write (const std::shared_ptr< MessageT > &msg_ptr) |
| Write a shared ptr of MessageT. More... | |
| bool | HasReader () override |
| Is there any Reader that subscribes our Channel? You can publish message when this return true. More... | |
| void | GetReaders (std::vector< proto::RoleAttributes > *readers) override |
| Get all Readers that subscriber our writing channel. More... | |
Public Member Functions inherited from apollo::cyber::WriterBase | |
| WriterBase (const proto::RoleAttributes &role_attr) | |
| Construct a new Writer Base object. More... | |
| virtual | ~WriterBase () |
| const std::string & | GetChannelName () const |
| Get Writer's Channel name. More... | |
| bool | IsInit () const |
| Is Writer initialized? More... | |
Additional Inherited Members | |
Protected Attributes inherited from apollo::cyber::WriterBase | |
| proto::RoleAttributes | role_attr_ |
| std::mutex | lock_ |
| bool | init_ |
| using apollo::cyber::Writer< MessageT >::ChangeConnection = typename service_discovery::Manager::ChangeConnection |
| using apollo::cyber::Writer< MessageT >::TransmitterPtr = std::shared_ptr<transport::Transmitter<MessageT> > |
|
explicit |
|
virtual |
|
overridevirtual |
Get all Readers that subscriber our writing channel.
| readers | vector result of RoleAttributes |
Reimplemented from apollo::cyber::WriterBase.
|
overridevirtual |
Is there any Reader that subscribes our Channel? You can publish message when this return true.
Reimplemented from apollo::cyber::WriterBase.
|
overridevirtual |
Init the Writer.
Implements apollo::cyber::WriterBase.
|
overridevirtual |
Shutdown the Writer.
Implements apollo::cyber::WriterBase.
|
virtual |
Write a MessageT instance.
| msg | the message we want to write |
Reimplemented in apollo::cyber::blocker::IntraWriter< MessageT >.
|
virtual |
Write a shared ptr of MessageT.
| msg_ptr | the message shared ptr we want to write |
Reimplemented in apollo::cyber::blocker::IntraWriter< MessageT >.
1.8.13