Public Member Functions | Protected Member Functions | List of all members
RTT::corba::RemoteInputPort Class Reference

#include <RemotePorts.hpp>

Inheritance diagram for RTT::corba::RemoteInputPort:
Inheritance graph
[legend]

Public Member Functions

base::PortInterfaceantiClone () const
 
base::ChannelElementBase::shared_ptr buildRemoteChannelOutput (base::OutputPortInterface &output_port, types::TypeInfo const *type, base::InputPortInterface &reader_, ConnPolicy const &policy)
 
void clear ()
 
base::PortInterfaceclone () const
 
bool createConnection (internal::SharedConnectionBase::shared_ptr shared_connection, ConnPolicy const &policy=ConnPolicy())
 
virtual bool disconnect (PortInterface *port)
 
base::DataSourceBasegetDataSource ()
 
 RemoteInputPort (types::TypeInfo const *type_info, CDataFlowInterface_ptr dataflow, std::string const &name, PortableServer::POA_ptr poa)
 
- Public Member Functions inherited from RTT::corba::RemotePort< base::InputPortInterface >
PortableServer::POA_ptr _default_POA ()
 
bool connected () const
 
bool createStream (const ConnPolicy &policy)
 
virtual void disconnect ()
 
CDataFlowInterface_ptr getDataFlowInterface () const
 
base::ChannelElementBasegetEndpoint () const
 
internal::ConnIDgetPortID () const
 
types::TypeInfo const * getTypeInfo () const
 
 RemotePort (types::TypeInfo const *type_info, CDataFlowInterface_ptr dataflow, std::string const &name, PortableServer::POA_ptr poa)
 
int serverProtocol () const
 
- Public Member Functions inherited from RTT::base::InputPortInterface
virtual bool connectTo (PortInterface *other, ConnPolicy const &policy)
 
virtual bool connectTo (PortInterface *other)
 
ConnPolicy getDefaultPolicy () const
 
 InputPortInterface (std::string const &name, ConnPolicy const &default_policy=ConnPolicy())
 
virtual FlowStatus read (DataSourceBase::shared_ptr source, bool copy_old_data=true)
 
void signalInterface (bool true_false)
 
virtual ~InputPortInterface ()
 
- Public Member Functions inherited from RTT::base::PortInterface
virtual bool connectedTo (PortInterface *port)
 
virtual ServicecreatePortObject ()
 
PortInterfacedoc (const std::string &desc)
 
const std::string & getDescription () const
 
const std::string & getFullName () const
 
DataFlowInterfacegetInterface () const
 
virtual internal::ConnectionManagergetManager ()
 
const std::string & getName () const
 
virtual internal::SharedConnectionBase::shared_ptr getSharedConnection () const
 
virtual bool isLocal () const
 
virtual bool removeConnection (internal::ConnID *cid)
 
void setInterface (DataFlowInterface *iface)
 
bool setName (const std::string &name)
 
virtual ~PortInterface ()
 

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
 
DataFlowInterfaceiface
 

Detailed Description

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.

Constructor & Destructor Documentation

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.

Member Function Documentation

virtual bool RTT::corba::RemoteInputPort::addConnection ( internal::ConnID ,
base::ChannelElementBase::shared_ptr  ,
ConnPolicy const &   
)
inlineprotectedvirtual

The ConnectionFactory calls this. Overload to do nothing when dealing with remote ports.

Parameters
port_id
channel_input
policy
Returns

Reimplemented from RTT::corba::RemotePort< base::InputPortInterface >.

Definition at line 138 of file RemotePorts.hpp.

RTT::base::PortInterface * RemoteInputPort::antiClone ( ) const
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.

RTT::base::ChannelElementBase::shared_ptr RemoteInputPort::buildRemoteChannelOutput ( base::OutputPortInterface output_port,
types::TypeInfo const *  type,
base::InputPortInterface reader_,
RTT::ConnPolicy const &  policy 
)
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.

Parameters
output_portThe local port that will be sending data to the remote channel.
typeThe type of data to transport
reader_Ignored. Must be this.
policyThe policy for the ConnFactory.
Returns
The local endpoint for the output.

Reimplemented from RTT::base::InputPortInterface.

Definition at line 122 of file RemotePorts.cpp.

void RemoteInputPort::clear ( )
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.

RTT::base::PortInterface * RemoteInputPort::clone ( ) const
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.

bool RemoteInputPort::createConnection ( internal::SharedConnectionBase::shared_ptr  shared_connection,
ConnPolicy const &  policy = ConnPolicy() 
)
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.

bool RemoteInputPort::disconnect ( PortInterface port)
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.

RTT::base::DataSourceBase * RemoteInputPort::getDataSource ( )
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.


The documentation for this class was generated from the following files:


rtt
Author(s): RTT Developers
autogenerated on Fri Oct 25 2019 03:59:46