39 m_listeners(listeners),
40 m_deleteBuffer(buffer == 0 ? true : false)
150 std::string buf_type;
ConnectorListeners class.
ConnectorListeners & m_listeners
A reference to a ConnectorListener.
ConnectorInfo m_profile
ConnectorInfo.
virtual void setBuffer(BufferBase< cdrMemoryStream > *buffer)=0
Setting outside buffer's pointer.
coil::Properties properties
Connection properties.
ConnectorListenerHolder connector_[CONNECTOR_LISTENER_NUM]
ConnectorListenerType listener array The ConnectorListenerType listener is stored.
RTC::ReturnCode_t ret(RTC::Local::ReturnCode_t r)
static GlobalFactory< AbstractClass, Identifier, Compare, Creator, Destructor > & instance()
Create instance.
GlobalFactory template class.
void onConnect()
Invoke callback when connection is established.
Enum
DataPortStatus return codes.
virtual ReturnCode read(cdrMemoryStream &data)
Reading data.
CdrBufferBase * m_buffer
Connector's buffer.
virtual CdrBufferBase * createBuffer(ConnectorInfo &info)
create buffer
DATAPORTSTATUS_ENUM InPortPushConnector(ConnectorInfo info, InPortProvider *provider, ConnectorListeners &listeners, CdrBufferBase *buffer=0)
Constructor.
InPortProvider * m_provider
the pointer to the InPortConsumer
virtual ReturnCode disconnect()
disconnect
void deleteObject(const Identifier &id, AbstractClass *&obj)
Delete factory object.
Push type connector class.
virtual void init(coil::Properties &prop)=0
Initializing configuration.
::RTC::BufferStatus::Enum ReturnCode
virtual ReturnCode read(DataType &value, long int sec=-1, long int nsec=-1)=0
Read data from the buffer.
virtual ~InPortPushConnector()
Destructor.
Properties & getNode(const std::string &key)
Get node of properties.
void notify(const ConnectorInfo &info)
Notify listeners.
virtual void init(const coil::Properties &prop)=0
Set the buffer.
BufferBase abstract class.
const std::string & getProperty(const std::string &key) const
Search for the property with the specified key in this property.
virtual void setListener(ConnectorInfo &info, ConnectorListeners *listeners)=0
Set the listener.
void onDisconnect()
Invoke callback when connection is destroied.