38 m_listeners(listeners)
46 throw std::bad_alloc();
79 RTC_TRACE((
"InPortPullConnector::read()"));
117 std::string buf_type;
ConnectorListeners class.
ConnectorInfo m_profile
ConnectorInfo.
coil::Properties properties
Connection properties.
ConnectorListeners & m_listeners
A reference to a ConnectorListener.
ConnectorListenerHolder connector_[CONNECTOR_LISTENER_NUM]
ConnectorListenerType listener array The ConnectorListenerType listener is stored.
virtual void setBuffer(CdrBufferBase *buffer)=0
Setting outside buffer's pointer.
void onConnect()
Invoke callback when connection is established.
static GlobalFactory< AbstractClass, Identifier, Compare, Creator, Destructor > & instance()
Create instance.
GlobalFactory template class.
CdrBufferBase * m_buffer
Connector's buffer.
CdrBufferBase * createBuffer(ConnectorInfo &info)
create buffer
virtual ReturnCode read(cdrMemoryStream &data)
Destructor.
void deleteObject(const Identifier &id, AbstractClass *&obj)
Delete factory object.
void onDisconnect()
Invoke callback when connection is destroied.
OutPortConsumer * m_consumer
the pointer to the OutPortConsumer
::RTC::BufferStatus::Enum ReturnCode
virtual ReturnCode get(cdrMemoryStream &data)=0
Receive data.
virtual void setListener(ConnectorInfo &info, ConnectorListeners *listeners)=0
Set the listener.
InPortPull type connector class.
OutPortConsumer abstract class.
Properties & getNode(const std::string &key)
Get node of properties.
virtual ~InPortPullConnector()
Destructor.
void notify(const ConnectorInfo &info)
Notify listeners.
virtual void init(const coil::Properties &prop)=0
Set the buffer.
BufferBase abstract class.
DATAPORTSTATUS_ENUM InPortPullConnector(ConnectorInfo info, OutPortConsumer *consumer, ConnectorListeners &listeners, CdrBufferBase *buffer=0)
Constructor.
const std::string & getProperty(const std::string &key) const
Search for the property with the specified key in this property.
virtual ReturnCode disconnect()
Disconnect connection.