20 #include <coil/Properties.h> 37 : rtclog(
"PublisherFlush"),
38 m_consumer(0), m_listeners(0), m_active(false),
119 RTC_ERROR((
"setListeners(listeners == 0): invalid argument"));
147 RTC_DEBUG((
"write(): connection lost."));
ConnectorListeners class.
InPortConsumer abstract class.
#define RTC_ERROR(fmt)
Error log output macro.
InPortConsumer * m_consumer
virtual ReturnCode write(const cdrMemoryStream &data, unsigned long sec, unsigned long usec)
Write data.
virtual ReturnCode deactivate()
deactivation
virtual ::RTC::DataPortStatus::Enum setListener(ConnectorInfo &profile, RTC::ConnectorListeners *listeners)
Set the listener.
virtual ReturnCode init(coil::Properties &prop)
initialization
virtual ReturnCode setConsumer(InPortConsumer *consumer)
Store InPort consumer.
void onReceiverError(const cdrMemoryStream &data)
Notify an ON_RECEIVER_ERROR event to listeners.
AbstractClass * Creator()
Creator template.
RTC::ReturnCode_t ret(RTC::Local::ReturnCode_t r)
static GlobalFactory< AbstractClass, Identifier, Compare, Creator, Destructor > & instance()
Create instance.
Enum
DataPortStatus return codes.
void onReceived(const cdrMemoryStream &data)
Notify an ON_RECEIVED event to listeners.
#define RTC_PARANOID(fmt)
Paranoid level log output macro.
virtual ReturnCode setBuffer(CdrBufferBase *buffer)
Setting buffer pointer.
#define RTC_DEBUG(fmt)
Debug level log output macro.
void onSend(const cdrMemoryStream &data)
Notify an ON_SEND event to listners.
void onReceiverTimeout(const cdrMemoryStream &data)
Notify an ON_RECEIVER_TIMEOUT event to listeners.
virtual bool isActive()
If publisher is active state.
::RTC::BufferStatus::Enum ReturnCode
prop
Organization::get_organization_property ();.
void Destructor(AbstractClass *&obj)
Destructor template.
Class represents a set of properties.
ConnectorListeners * m_listeners
DATAPORTSTATUS_ENUM PublisherFlush()
Constructor.
virtual ReturnCode activate()
activation
virtual ~PublisherFlush(void)
Destructor.
virtual ReturnCode put(const cdrMemoryStream &data)=0
Send data to the destination port.
BufferBase abstract class.
Enum
DataPortStatus return codes.
void PublisherFlushInit()
void onReceiverFull(const cdrMemoryStream &data)
Notify an ON_RECEIVER_FULL event to listeners.