#include <PublisherFlush.h>
Public Types | |
typedef coil::Mutex | Mutex |
typedef coil::Condition < Mutex > | Condition |
typedef coil::Guard < coil::Mutex > | Guard |
Public Member Functions | |
DATAPORTSTATUS_ENUM | PublisherFlush () |
Constructor. | |
virtual | ~PublisherFlush (void) |
Destructor. | |
virtual ReturnCode | init (coil::Properties &prop) |
initialization | |
virtual ReturnCode | setConsumer (InPortConsumer *consumer) |
virtual ReturnCode | setBuffer (CdrBufferBase *buffer) |
virtual ReturnCode | write (const cdrMemoryStream &data, unsigned long sec, unsigned long usec) |
virtual bool | isActive () |
virtual ReturnCode | activate () |
virtual ReturnCode | deactivate () |
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.
typedef coil::Mutex RTC::PublisherFlush::Mutex |
typedef coil::Condition<Mutex> RTC::PublisherFlush::Condition |
typedef coil::Guard<coil::Mutex> RTC::PublisherFlush::Guard |
DATAPORTSTATUS_ENUM RTC::PublisherFlush::PublisherFlush | ( | ) |
Constructor.
Consrtuctor.
consumer | Consumer to wait for the data sending | |
property | Property object that have been set the control information of this Publisher |
virtual RTC::PublisherFlush::~PublisherFlush | ( | void | ) | [virtual] |
Destructor.
Destructor This is invoked by PublisherFactory when this Publisher is destoroyed.
virtual ReturnCode RTC::PublisherFlush::init | ( | coil::Properties & | prop | ) | [virtual] |
virtual ReturnCode RTC::PublisherFlush::setConsumer | ( | InPortConsumer * | consumer | ) | [virtual] |
Implements RTC::PublisherBase.
virtual ReturnCode RTC::PublisherFlush::setBuffer | ( | CdrBufferBase * | buffer | ) | [virtual] |
Implements RTC::PublisherBase.
virtual ReturnCode RTC::PublisherFlush::write | ( | const cdrMemoryStream & | data, | |
unsigned long | sec, | |||
unsigned long | usec | |||
) | [virtual] |
Implements RTC::PublisherBase.
virtual bool RTC::PublisherFlush::isActive | ( | ) | [virtual] |
Implements RTC::PublisherBase.
virtual ReturnCode RTC::PublisherFlush::activate | ( | ) | [virtual] |
Implements RTC::PublisherBase.
virtual ReturnCode RTC::PublisherFlush::deactivate | ( | ) | [virtual] |
Implements RTC::PublisherBase.