#include <RemotePorts.hpp>
Protected Member Functions | |
virtual bool | addConnection (internal::ConnID *, base::ChannelElementBase::shared_ptr, ConnPolicy const &) |
Protected Member Functions inherited from RTT::corba::RemotePort< base::InputPortInterface > | |
bool | connectionAdded (base::ChannelElementBase::shared_ptr channel, ConnPolicy const &policy) |
Protected Member Functions inherited from RTT::base::InputPortInterface | |
InputPortInterface (const InputPortInterface &orig) | |
void | signal () |
void | traceRead (RTT::FlowStatus status) |
Protected Member Functions inherited from RTT::base::PortInterface | |
PortInterface (const std::string &name) | |
Additional Inherited Members | |
Protected Attributes inherited from RTT::corba::RemotePort< base::InputPortInterface > | |
CDataFlowInterface_var | dataflow |
PortableServer::POA_var | mpoa |
types::TypeInfo const * | type_info |
Protected Attributes inherited from RTT::base::InputPortInterface | |
ConnPolicy | default_policy |
bool | msignal_interface |
Protected Attributes inherited from RTT::base::PortInterface | |
internal::ConnectionManager | cmanager |
os::MutexRecursive | connection_lock |
DataFlowInterface * | iface |
Proxy for a remote input port. Since it inherits from ConnFactory, it also allows for building an output endpoint. You can not access its datasource.
Definition at line 127 of file RemotePorts.hpp.
RemoteInputPort::RemoteInputPort | ( | types::TypeInfo const * | type_info, |
CDataFlowInterface_ptr | dataflow, | ||
std::string const & | name, | ||
PortableServer::POA_ptr | poa | ||
) |
Definition at line 110 of file RemotePorts.cpp.
|
inlineprotectedvirtual |
The ConnectionFactory calls this. Overload to do nothing when dealing with remote ports.
port_id | |
channel_input | |
policy |
Reimplemented from RTT::corba::RemotePort< base::InputPortInterface >.
Definition at line 138 of file RemotePorts.hpp.
|
virtual |
Create a local clone of this port with the same name. If this port is a local port, this is an object of the inverse direction (read for write and write for read), and same name. If this object is a remote port, then it is a local port of the inverse direction and with the same name.
Implements RTT::base::PortInterface.
Definition at line 234 of file RemotePorts.cpp.
|
virtual |
This method will do more than just building the output half, it will create the two crucial ChannelElements on both sides of the CORBA connection to marshal/demarshal the channel data. The policy is used to determine if storage must be allocated remotely or (has been allocated) locally. reader_ is ignored and must be this.
output_port | The local port that will be sending data to the remote channel. |
type | The type of data to transport |
reader_ | Ignored. Must be this. |
policy | The policy for the ConnFactory. |
Reimplemented from RTT::base::InputPortInterface.
Definition at line 122 of file RemotePorts.cpp.
|
virtual |
Clears the connection. After call to read() will return false after clear() has been called
Implements RTT::base::InputPortInterface.
Definition at line 116 of file RemotePorts.cpp.
|
virtual |
Create a local clone of this port with the same name. If this port is a local port, this is an object of the same type and same name. If this object is a remote port, then it is a local port of the same type and same name.
Implements RTT::base::PortInterface.
Definition at line 231 of file RemotePorts.cpp.
|
virtual |
Overridden version of InputPortInterface::createConnection(internal::SharedConnectionBase::shared_ptr, ConnPolicy const&), which forwards the call to the remote data flow interface.
Reimplemented from RTT::base::InputPortInterface.
Definition at line 200 of file RemotePorts.cpp.
|
virtual |
Removes the channel that connects this port to port
. All other ports or callbacks remain unaffected.
Reimplemented from RTT::base::InputPortInterface.
Definition at line 225 of file RemotePorts.cpp.
|
virtual |
Returns a DataSourceBase interface to read this port. The returned data source is always a new object.
Implements RTT::base::InputPortInterface.
Definition at line 119 of file RemotePorts.cpp.