#include <rtt/ConnectionInterface.hpp>

Public Types | |
|
typedef boost::intrusive_ptr < ConnectionInterface > | shared_ptr |
Public Member Functions | |
| 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 () |
| Connect all readers and writers. | |
| virtual bool | connected () const |
| Get Connection status. | |
| virtual bool | disconnect () |
| Disconnect all readers and writers. | |
| virtual bool | addPort (PortInterface *p) |
| Add a Port to the connection. | |
| virtual bool | removePort (PortInterface *p) |
| Remove a Port from the connection. | |
| virtual const TypeInfo * | getTypeInfo () const =0 |
| Get the data type of this port. | |
| virtual int | serverProtocol () const |
| Returns the protocol over which this connection can be accessed. | |
| void | signal () |
| Signals that a new data sample has been written on this connection. | |
Protected Types | |
|
typedef std::vector < PortInterface * > | PList |
Protected Member Functions | |
| friend | void::intrusive_ptr_add_ref (ConnectionInterface *p) |
| friend | void::intrusive_ptr_release (ConnectionInterface *p) |
Protected Attributes | |
| oro_atomic_t | refcount |
| PList | ports |
| bool | mconnected |
Definition at line 101 of file ConnectionInterface.hpp.
| virtual bool RTT::ConnectionInterface::addPort | ( | PortInterface * | p | ) | [virtual] |
Add a Port to the connection.
If this->connected(), also immediately connect p to this connection.
| p | A port which wants to read or write data from this connection. |
| virtual bool RTT::ConnectionInterface::connect | ( | ) | [virtual] |
Connect all readers and writers.
If a reader or writer is already connected to another connection, this method fails.
| virtual BufferBase::shared_ptr RTT::ConnectionInterface::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 RTT::BufferConnection< T >, and RTT::DataConnection< T >.
| virtual DataSourceBase::shared_ptr RTT::ConnectionInterface::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 RTT::BufferConnection< T >, and RTT::DataConnection< T >.
| virtual bool RTT::ConnectionInterface::removePort | ( | PortInterface * | p | ) | [virtual] |
Remove a Port from the connection.
If this->connected(), also immediately disconnect p from this connection.
| p | A port which no longer wants to read or write data from this connection. |
| void RTT::ConnectionInterface::signal | ( | ) |
Signals that a new data sample has been written on this connection.
This is to be called by source ports when new data is written on the connection
1.5.8