Orocos Real-Time Toolkit
2.9.0
|
Contains the common CORBA management code for proxy port objects representing ports available through CORBA. More...
#include <rtt/transports/corba/RemotePorts.hpp>
Public Member Functions | |
RemotePort (types::TypeInfo const *type_info, CDataFlowInterface_ptr dataflow, std::string const &name, PortableServer::POA_ptr poa) | |
PortableServer::POA_ptr | _default_POA () |
CDataFlowInterface_ptr | getDataFlowInterface () const |
internal::ConnID * | getPortID () const |
types::TypeInfo const * | getTypeInfo () const |
int | serverProtocol () const |
bool | connected () const |
bool | createStream (const ConnPolicy &policy) |
virtual bool | addConnection (internal::ConnID *port_id, base::ChannelElementBase::shared_ptr channel_input, ConnPolicy const &policy) |
virtual void | disconnect () |
base::ChannelElementBase * | getEndpoint () const |
Protected Member Functions | |
bool | connectionAdded (base::ChannelElementBase::shared_ptr channel, ConnPolicy const &policy) |
Protected Attributes | |
types::TypeInfo const * | type_info |
CDataFlowInterface_var | dataflow |
PortableServer::POA_var | mpoa |
Contains the common CORBA management code for proxy port objects representing ports available through CORBA.
A Remote port object is just a view (ie proxy) on a real port. This means that many remote port objects can point to the same real port and that destroying a remote port object does not lead to disconnection of the real port. All important functions are to be forwarded to the real port.
Definition at line 62 of file RemotePorts.hpp.
RemotePort::RemotePort | ( | types::TypeInfo const * | type_info, |
CDataFlowInterface_ptr | dataflow, | ||
std::string const & | name, | ||
PortableServer::POA_ptr | poa | ||
) |
Definition at line 54 of file RemotePorts.cpp.
Referenced by RTT::corba::RemotePort< base::OutputPortInterface >::connectionAdded().
PortableServer::POA_ptr RemotePort::_default_POA | ( | ) |
Definition at line 83 of file RemotePorts.cpp.
References RTT::corba::RemotePort< PortClass >::mpoa.
Referenced by RTT::corba::RemotePort< base::OutputPortInterface >::connectionAdded().
|
virtual |
Reimplemented in RTT::corba::RemoteInputPort.
Definition at line 98 of file RemotePorts.cpp.
Referenced by RTT::corba::RemotePort< base::OutputPortInterface >::connectionAdded().
bool RemotePort::connected | ( | ) | const |
Definition at line 71 of file RemotePorts.cpp.
References RTT::corba::RemotePort< PortClass >::dataflow.
Referenced by RTT::corba::RemotePort< base::OutputPortInterface >::connectionAdded().
|
inlineprotected |
Definition at line 69 of file RemotePorts.hpp.
bool RemotePort::createStream | ( | const ConnPolicy & | policy | ) |
Definition at line 91 of file RemotePorts.cpp.
References RTT::Error.
Referenced by RTT::corba::RemotePort< base::OutputPortInterface >::connectionAdded().
|
virtual |
Definition at line 76 of file RemotePorts.cpp.
References RTT::corba::RemotePort< PortClass >::dataflow.
Referenced by RTT::corba::RemoteInputPort::addConnection(), and RTT::corba::RemotePort< base::OutputPortInterface >::connectionAdded().
CDataFlowInterface_ptr RemotePort::getDataFlowInterface | ( | ) | const |
Definition at line 64 of file RemotePorts.cpp.
References RTT::corba::RemotePort< PortClass >::dataflow.
Referenced by RTT::corba::RemotePort< base::OutputPortInterface >::connectionAdded(), RTT::corba::RemoteOutputPort::createConnection(), and RTT::corba::RemoteOutputPort::disconnect().
RTT::base::ChannelElementBase * RemotePort::getEndpoint | ( | ) | const |
Definition at line 105 of file RemotePorts.cpp.
Referenced by RTT::corba::RemotePort< base::OutputPortInterface >::connectionAdded().
RTT::internal::ConnID * RemotePort::getPortID | ( | ) | const |
Definition at line 87 of file RemotePorts.cpp.
References RTT::corba::RemotePort< PortClass >::dataflow.
Referenced by RTT::corba::RemotePort< base::OutputPortInterface >::connectionAdded().
RTT::types::TypeInfo const * RemotePort::getTypeInfo | ( | ) | const |
Definition at line 67 of file RemotePorts.cpp.
References RTT::corba::RemotePort< PortClass >::type_info.
Referenced by RTT::corba::RemotePort< base::OutputPortInterface >::connectionAdded().
int RemotePort::serverProtocol | ( | ) | const |
Definition at line 69 of file RemotePorts.cpp.
References ORO_CORBA_PROTOCOL_ID.
Referenced by RTT::corba::RemotePort< base::OutputPortInterface >::connectionAdded().
|
protected |
Definition at line 66 of file RemotePorts.hpp.
Referenced by RTT::corba::RemoteInputPort::addConnection(), RTT::corba::RemotePort< PortClass >::connected(), RTT::corba::RemotePort< PortClass >::disconnect(), RTT::corba::RemotePort< PortClass >::getDataFlowInterface(), and RTT::corba::RemotePort< PortClass >::getPortID().
|
protected |
Definition at line 67 of file RemotePorts.hpp.
Referenced by RTT::corba::RemotePort< PortClass >::_default_POA().
|
protected |
Definition at line 65 of file RemotePorts.hpp.
Referenced by RTT::corba::RemoteInputPort::addConnection(), and RTT::corba::RemotePort< PortClass >::getTypeInfo().