OpenRTM-aist 2.1.0
|
PublisherFlush class. More...
#include <PublisherFlush.h>
Public Member Functions | |
PublisherFlush () | |
Constructor. | |
~PublisherFlush () override | |
Destructor. | |
DataPortStatus | init (coil::Properties &prop) override |
initialization | |
DataPortStatus | setConsumer (InPortConsumer *consumer) override |
Store InPort consumer. | |
DataPortStatus | setBuffer (CdrBufferBase *buffer) override |
Setting buffer pointer. | |
::RTC::DataPortStatus | setListener (ConnectorInfo &info, RTC::ConnectorListenersBase *listeners) override |
Set the listener. | |
DataPortStatus | write (ByteDataStreamBase *data, std::chrono::nanoseconds timeout=std::chrono::nanoseconds(-1)) override |
Write data. | |
bool | isActive () override |
If publisher is active state. | |
DataPortStatus | activate () override |
activation | |
DataPortStatus | deactivate () override |
deactivation | |
![]() | |
virtual | ~PublisherBase ()=default |
Destructor. | |
virtual DataPortStatus | setBuffer (BufferBase< ByteData > *buffer)=0 |
Setting buffer pointer. | |
virtual void | release () |
Release the Publisher. | |
Protected Member Functions | |
void | onSend (ByteData &data) |
Notify an ON_SEND event to listners. | |
void | onReceived (ByteData &data) |
Notify an ON_RECEIVED event to listeners. | |
void | onReceiverFull (ByteData &data) |
Notify an ON_RECEIVER_FULL event to listeners. | |
void | onReceiverTimeout (ByteData &data) |
Notify an ON_RECEIVER_TIMEOUT event to listeners. | |
void | onReceiverError (ByteData &data) |
Notify an ON_RECEIVER_ERROR event to listeners. | |
PublisherFlush class.
This is a Publisher class of Flush type. This class sends unsend data that has been stored in the buffer. This executes Consumer that waits for the data send timing in the same thread as its send side.
RTC::PublisherFlush::PublisherFlush | ( | ) |
Constructor.
|
override |
Destructor.
|
overridevirtual |
activation
Implements RTC::PublisherBase.
|
overridevirtual |
deactivation
Implements RTC::PublisherBase.
|
overridevirtual |
initialization
Implements RTC::PublisherBase.
|
overridevirtual |
If publisher is active state.
A Publisher can be activated/deactivated synchronized with the data port. The active state and the non-active state are made transition by the "activate()" and the "deactivate()" functions respectively. This function confirms if the publisher is in active state.
Implements RTC::PublisherBase.
|
inlineprotected |
Notify an ON_RECEIVED event to listeners.
References RTC::ConnectorListenersBase::notifyOut(), and RTC::ON_RECEIVED.
|
inlineprotected |
Notify an ON_RECEIVER_ERROR event to listeners.
References RTC::ConnectorListenersBase::notifyOut(), and RTC::ON_RECEIVER_ERROR.
|
inlineprotected |
Notify an ON_RECEIVER_FULL event to listeners.
References RTC::ConnectorListenersBase::notifyOut(), and RTC::ON_RECEIVER_FULL.
|
inlineprotected |
Notify an ON_RECEIVER_TIMEOUT event to listeners.
References RTC::ConnectorListenersBase::notifyOut(), and RTC::ON_RECEIVER_TIMEOUT.
|
inlineprotected |
Notify an ON_SEND event to listners.
References RTC::ConnectorListenersBase::notifyOut(), and RTC::ON_SEND.
|
override |
Setting buffer pointer.
|
overridevirtual |
Store InPort consumer.
Implements RTC::PublisherBase.
|
overridevirtual |
Set the listener.
Implements RTC::PublisherBase.
|
overridevirtual |
Write data.
Implements RTC::PublisherBase.