#include <InputPortInterface.hpp>
Protected Member Functions | |
InputPortInterface (const InputPortInterface &orig) | |
void | signal () |
void | traceRead (RTT::FlowStatus status) |
Protected Member Functions inherited from RTT::base::PortInterface | |
PortInterface (const std::string &name) | |
Protected Attributes | |
ConnPolicy | default_policy |
bool | msignal_interface |
Protected Attributes inherited from RTT::base::PortInterface | |
internal::ConnectionManager | cmanager |
os::MutexRecursive | connection_lock |
DataFlowInterface * | iface |
The base class of the InputPort. It contains the connection management code, which is independent of the actual data being transmitted.
Definition at line 60 of file InputPortInterface.hpp.
|
protected |
RTT::base::InputPortInterface::InputPortInterface | ( | std::string const & | name, |
ConnPolicy const & | default_policy = ConnPolicy() |
||
) |
|
virtual |
Definition at line 64 of file InputPortInterface.cpp.
|
virtual |
Adds a user created connection to this port. This is an advanced method, prefer to use connectTo and createStream.
Implements RTT::base::PortInterface.
Reimplemented in RTT::corba::RemoteInputPort, and RTT::corba::RemotePort< base::InputPortInterface >.
Definition at line 101 of file InputPortInterface.cpp.
|
virtual |
This method is analoguous to the static ConnFactory::buildChannelOutput. It is provided for remote connection building: for these connections, no template can be used and therefore the connection setup should be done based on the types::TypeInfo object
Reimplemented in RTT::corba::RemoteInputPort.
Definition at line 149 of file InputPortInterface.cpp.
|
pure virtual |
Clears the connection. After call to read() will return false after clear() has been called
Implemented in RTT::corba::RemoteInputPort, RTT::InputPort< T >, RTT::InputPort< double >, RTT::InputPort< int >, and RTT::InputPort< bool >.
|
virtual |
Returns true if this port is connected
Implements RTT::base::PortInterface.
Reimplemented in RTT::corba::RemotePort< base::InputPortInterface >.
Definition at line 124 of file InputPortInterface.cpp.
|
virtual |
Connects this port with other, using the given policy. Unlike OutputPortInterface::createConnection, other can be the write port and this
the read port.
Implements RTT::base::PortInterface.
Definition at line 86 of file InputPortInterface.cpp.
|
virtual |
Connects this port with other, using the default policy of the input. Unlike OutputPortInterface::createConnection, other can be the write port and this
the read port.
Implements RTT::base::PortInterface.
Definition at line 96 of file InputPortInterface.cpp.
|
virtual |
Connects the port to an existing shared connection instance.
Implements RTT::base::PortInterface.
Reimplemented in RTT::corba::RemoteInputPort.
Definition at line 144 of file InputPortInterface.cpp.
|
virtual |
Removes any connection that either go to or come from this port and removes all callbacks and cleans up the NewDataOnPortEvent.
Implements RTT::base::PortInterface.
Reimplemented in RTT::corba::RemotePort< base::InputPortInterface >.
Definition at line 134 of file InputPortInterface.cpp.
|
virtual |
Removes the channel that connects this port to port
. All other ports or callbacks remain unaffected.
Implements RTT::base::PortInterface.
Reimplemented in RTT::corba::RemoteInputPort.
Definition at line 139 of file InputPortInterface.cpp.
|
pure virtual |
Returns a DataSourceBase interface to read this port. The returned data source is always a new object.
Implemented in RTT::InputPort< T >, RTT::InputPort< double >, RTT::InputPort< int >, RTT::InputPort< bool >, and RTT::corba::RemoteInputPort.
ConnPolicy InputPortInterface::getDefaultPolicy | ( | ) | const |
Definition at line 74 of file InputPortInterface.cpp.
|
virtual |
Reads the port and updates the value hold by the given data source. This is only valid for local ports.
source has to be an assignable data source
Reimplemented in RTT::InputPort< T >, RTT::InputPort< double >, RTT::InputPort< int >, and RTT::InputPort< bool >.
Definition at line 120 of file InputPortInterface.cpp.
|
protected |
The ConnOutputEndpoint signals that new data is available
Definition at line 108 of file InputPortInterface.cpp.
void InputPortInterface::signalInterface | ( | bool | true_false | ) |
When called with true, will signal the DataFlowInterface when new data is available.
Definition at line 114 of file InputPortInterface.cpp.
|
protected |
Definition at line 129 of file InputPortInterface.cpp.
|
protected |
Definition at line 69 of file InputPortInterface.hpp.
|
protected |
Definition at line 73 of file InputPortInterface.hpp.