38 m_listeners(listeners),
141 std::string buf_type;
ConnectorListeners class.
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.
CdrBufferBase * m_buffer
the pointer to the buffer
virtual void setConnector(OutPortConnector *connector)=0
set Connector
CdrBufferBase * createBuffer(ConnectorInfo &info)
create buffer
virtual ReturnCode disconnect()
disconnect
ConnectorInfo m_profile
PortProfile of the Port.
static GlobalFactory< AbstractClass, Identifier, Compare, Creator, Destructor > & instance()
Create instance.
GlobalFactory template class.
virtual void setListener(ConnectorInfo &info, ConnectorListeners *listeners)=0
Set the listener.
virtual ~OutPortPullConnector()
Destructor.
OutPortProvider * m_provider
the pointer to the OutPortProvider
virtual CdrBufferBase * getBuffer()
Getting Buffer.
void deleteObject(const Identifier &id, AbstractClass *&obj)
Delete factory object.
DATAPORTSTATUS_ENUM OutPortPullConnector(ConnectorInfo info, OutPortProvider *provider, ConnectorListeners &listeners, CdrBufferBase *buffer=0)
Constructor.
::RTC::BufferStatus::Enum ReturnCode
void onDisconnect()
Invoke callback when connection is destroied.
OutPortPull type connector class.
Properties & getNode(const std::string &key)
Get node of properties.
virtual ReturnCode write(const DataType &value, long int sec=-1, long int nsec=-1)=0
Write data into the buffer.
void notify(const ConnectorInfo &info)
Notify listeners.
virtual void init(const coil::Properties &prop)=0
Set the buffer.
BufferBase abstract class.
virtual ReturnCode write(const cdrMemoryStream &data)
Writing data.
virtual void setBuffer(CdrBufferBase *buffer)=0
Setting outside buffer's pointer.
void onConnect()
Invoke callback when connection is established.
const std::string & getProperty(const std::string &key) const
Search for the property with the specified key in this property.