#include <rtt/ConnectionInterface.hpp>

Definition at line 100 of file ConnectionInterface.hpp.
Public Types | |
|
typedef boost::intrusive_ptr < ConnectionInterface > | shared_ptr |
Public Member Functions | |
| ConnectionInterface () | |
| virtual | ~ConnectionInterface () |
| virtual DataSourceBase::shared_ptr | getDataSource () const =0 |
| Get a Data source representing the current value of this connection. | |
| virtual BufferBase::shared_ptr | getBuffer () const =0 |
| Returns the buffer and its associated status of this connection, if this connection is buffered. | |
| virtual bool | connect ()=0 |
| Connect all readers and writers. | |
| virtual bool | connected () const =0 |
| Get Connection status. | |
| virtual bool | disconnect ()=0 |
| Disconnect all readers and writers. | |
| virtual bool | addReader (PortInterface *r)=0 |
| Add a Port as possible reader (consumer) of the connection. | |
| virtual bool | removeReader (PortInterface *r)=0 |
| Remove a Port as possible reader (consumer) of the connection. | |
| virtual bool | addWriter (PortInterface *w)=0 |
| Add a Port as possible writer (producer) of the connection. | |
| virtual bool | removeWriter (PortInterface *w)=0 |
| Remove a Port as possible writer (producer) of the connection. | |
Protected Member Functions | |
| friend | void::intrusive_ptr_add_ref (ConnectionInterface *p) |
| friend | void::intrusive_ptr_release (ConnectionInterface *p) |
Protected Attributes | |
| oro_atomic_t | refcount |
| virtual DataSourceBase::shared_ptr getDataSource | ( | ) | const [pure virtual] |
Get a Data source representing the current value of this connection.
This function always returns a meaningful data source.
Implemented in BufferConnection, and DataConnection.
| virtual BufferBase::shared_ptr getBuffer | ( | ) | const [pure virtual] |
Returns the buffer and its associated status of this connection, if this connection is buffered.
Otherwise, this returns the null pointer.
Implemented in BufferConnection, and DataConnection.
| virtual bool connect | ( | ) | [pure virtual] |
Connect all readers and writers.
If a reader or writer is already connected to another connection, this method fails.
Implemented in BufferConnection, and DataConnection.
| virtual bool addReader | ( | PortInterface * | r | ) | [pure virtual] |
Add a Port as possible reader (consumer) of the connection.
If this->connected(), also immediately connect r to this connection.
| r | A port which wants to read data from this connection. |
Implemented in BufferConnection, and DataConnection.
Referenced by ConnectionFactory::createBuffer(), and ConnectionFactory::createDataObject().
| virtual bool removeReader | ( | PortInterface * | r | ) | [pure virtual] |
Remove a Port as possible reader (consumer) of the connection.
If this->connected(), also immediately disconnect r from this connection.
| r | A port which no longer wants to read data from this connection. |
Implemented in BufferConnection, and DataConnection.
| virtual bool addWriter | ( | PortInterface * | w | ) | [pure virtual] |
Add a Port as possible writer (producer) of the connection.
If this->connected(), also immediately connect w to this connection.
| w | A port which wants to write data into this connection. |
Implemented in BufferConnection, and DataConnection.
Referenced by ConnectionFactory::createBuffer(), and ConnectionFactory::createDataObject().
| virtual bool removeWriter | ( | PortInterface * | w | ) | [pure virtual] |
Remove a Port as possible writer (producer) of the connection.
If this->connected(), also immediately disconnect w from this connection.
| w | A port which no longer wants to write data into this connection. |
Implemented in BufferConnection, and DataConnection.
1.5.3