Orocos Real-Time Toolkit  2.8.3
Public Member Functions | List of all members
RTT::corba::CorbaFallBackProtocol Class Reference

This protocol is used for all types which did not get a protocol. More...

Inheritance diagram for RTT::corba::CorbaFallBackProtocol:
RTT::corba::CorbaTypeTransporter RTT::types::TypeTransporter

Public Member Functions

 CorbaFallBackProtocol (bool do_warn=true)
 
virtual CORBA::Any * createAny (DataSourceBase::shared_ptr source) const
 Evaluate source and create an any which contains the value of source. More...
 
virtual bool updateAny (base::DataSourceBase::shared_ptr source, CORBA::Any &any) const
 Evaluate source and update an any which contains the value of source. More...
 
virtual base::DataSourceBase::shared_ptr createDataSource (const CORBA::Any *any) const
 Create a Data Source from an any. More...
 
virtual bool updateFromAny (const CORBA::Any *blob, DataSourceBase::shared_ptr target) const
 Update target with the contents of blob which is an object of a protocol. More...
 
virtual ChannelElementBase::shared_ptr createStream (base::PortInterface *port, const ConnPolicy &policy, bool is_sender) const
 The CORBA transport does not support creating 'CORBA' streams. More...
 
virtual base::ChannelElementBasebuildDataStorage (ConnPolicy const &policy) const
 
virtual CRemoteChannelElement_icreateChannelElement_i (DataFlowInterface *,::PortableServer::POA *poa, bool) const
 Builds a channel element for remote transport in both directions. More...
 
virtual base::ChannelElementBasebuildChannelOutput (base::InputPortInterface &port, ConnPolicy const &policy) const
 
virtual base::ChannelElementBasebuildChannelInput (base::OutputPortInterface &port, ConnPolicy const &policy) const
 
virtual base::DataSourceBase::shared_ptr createPropertyDataSource (CService_ptr serv, const std::string &vname)
 Create a data source for an attribute or property. More...
 
virtual base::DataSourceBase::shared_ptr createAttributeDataSource (CService_ptr serv, const std::string &vname)
 

Detailed Description

This protocol is used for all types which did not get a protocol.

Specifically, if the type is UnknownType.

Definition at line 67 of file CorbaLib.cpp.

Constructor & Destructor Documentation

RTT::corba::CorbaFallBackProtocol::CorbaFallBackProtocol ( bool  do_warn = true)
inline

Definition at line 72 of file CorbaLib.cpp.

Member Function Documentation

virtual base::ChannelElementBase* RTT::corba::CorbaFallBackProtocol::buildChannelInput ( base::OutputPortInterface port,
ConnPolicy const &  policy 
) const
inlinevirtual

Definition at line 132 of file CorbaLib.cpp.

References RTT::os::endl(), RTT::Error, and RTT::base::PortInterface::getName().

virtual base::ChannelElementBase* RTT::corba::CorbaFallBackProtocol::buildChannelOutput ( base::InputPortInterface port,
ConnPolicy const &  policy 
) const
inlinevirtual

Definition at line 125 of file CorbaLib.cpp.

References RTT::os::endl(), RTT::Error, and RTT::base::PortInterface::getName().

virtual base::ChannelElementBase* RTT::corba::CorbaFallBackProtocol::buildDataStorage ( ConnPolicy const &  policy) const
inlinevirtual

Definition at line 116 of file CorbaLib.cpp.

virtual CORBA::Any* RTT::corba::CorbaFallBackProtocol::createAny ( DataSourceBase::shared_ptr  source) const
inlinevirtual

Evaluate source and create an any which contains the value of source.

Implements RTT::corba::CorbaTypeTransporter.

Definition at line 73 of file CorbaLib.cpp.

References RTT::os::endl(), and RTT::Error.

virtual base::DataSourceBase::shared_ptr RTT::corba::CorbaFallBackProtocol::createAttributeDataSource ( CService_ptr  serv,
const std::string &  vname 
)
inlinevirtual

Implements RTT::corba::CorbaTypeTransporter.

Definition at line 144 of file CorbaLib.cpp.

References RTT::Warning.

virtual CRemoteChannelElement_i* RTT::corba::CorbaFallBackProtocol::createChannelElement_i ( DataFlowInterface sender,
::PortableServer::POA *  poa,
bool  is_pull 
) const
inlinevirtual

Builds a channel element for remote transport in both directions.

Parameters
senderThe data flow interface which will be sending or receiving this channel.
poaThe POA to manage the server code.
Returns
the created CChannelElement_i.

Implements RTT::corba::CorbaTypeTransporter.

Definition at line 118 of file CorbaLib.cpp.

References RTT::os::endl(), and RTT::Error.

virtual base::DataSourceBase::shared_ptr RTT::corba::CorbaFallBackProtocol::createDataSource ( const CORBA::Any *  any) const
inlinevirtual

Create a Data Source from an any.

Returns
null if no conversion could be made.

Implements RTT::corba::CorbaTypeTransporter.

Definition at line 93 of file CorbaLib.cpp.

virtual base::DataSourceBase::shared_ptr RTT::corba::CorbaFallBackProtocol::createPropertyDataSource ( CService_ptr  serv,
const std::string &  vname 
)
inlinevirtual

Create a data source for an attribute or property.

Will create an assignable data source when the property or attribute can be changed, a normal data source otherwise.

Implements RTT::corba::CorbaTypeTransporter.

Definition at line 138 of file CorbaLib.cpp.

References RTT::Warning.

virtual ChannelElementBase::shared_ptr RTT::corba::CorbaFallBackProtocol::createStream ( base::PortInterface ,
const ConnPolicy p,
bool   
) const
inlinevirtual

The CORBA transport does not support creating 'CORBA' streams.

Returns
null

Reimplemented from RTT::corba::CorbaTypeTransporter.

Definition at line 110 of file CorbaLib.cpp.

References RTT::os::endl(), RTT::Error, and RTT::base::PortInterface::getName().

virtual bool RTT::corba::CorbaFallBackProtocol::updateAny ( base::DataSourceBase::shared_ptr  source,
CORBA::Any &  any 
) const
inlinevirtual

Evaluate source and update an any which contains the value of source.

Implements RTT::corba::CorbaTypeTransporter.

Definition at line 83 of file CorbaLib.cpp.

References RTT::os::endl(), and RTT::Error.

virtual bool RTT::corba::CorbaFallBackProtocol::updateFromAny ( const CORBA::Any *  blob,
DataSourceBase::shared_ptr  target 
) const
inlinevirtual

Update target with the contents of blob which is an object of a protocol.

Implements RTT::corba::CorbaTypeTransporter.

Definition at line 101 of file CorbaLib.cpp.

References RTT::os::endl(), and RTT::Error.


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