Orocos Real-Time Toolkit  2.5.0
Public Types | Public Member Functions
RTT::corba::CorbaTemplateProtocol< T > Class Template Reference

For each transportable type T, specify the conversion functions. More...

#include <rtt/transports/corba/CorbaTemplateProtocol.hpp>

Inheritance diagram for RTT::corba::CorbaTemplateProtocol< T >:
RTT::corba::CorbaTypeTransporter RTT::types::TypeTransporter

List of all members.

Public Types

typedef T UserType
 The given T parameter is the type for reading DataSources.
typedef Property< T >
::DataSourceType 
PropertyType
 When Properties of T are constructed, they are non-const, non-reference.

Public Member Functions

CRemoteChannelElement_icreateChannelElement_i (DataFlowInterface *sender, PortableServer::POA_ptr poa, bool is_pull) const
virtual CORBA::Any * createAny (base::DataSourceBase::shared_ptr source) const
 Create an transportable object for a protocol which contains the value of source.
virtual bool updateAny (base::DataSourceBase::shared_ptr source, CORBA::Any &any) const
 Update a transportable object for a protocol which contains the value of source.
virtual
base::DataSourceBase::shared_ptr 
createDataSource (const CORBA::Any *any) const
 Create a Data Source from an any.
virtual bool updateFromAny (const CORBA::Any *any, base::DataSourceBase::shared_ptr target) const
 Update target with the contents of any which is an object of a protocol.
virtual
base::DataSourceBase::shared_ptr 
createPropertyDataSource (CService_ptr serv, const std::string &vname)
 Create a data source for an attribute or property.
virtual
base::DataSourceBase::shared_ptr 
createAttributeDataSource (CService_ptr serv, const std::string &vname)
virtual CRemoteChannelElement_icreateChannelElement_i (DataFlowInterface *sender,::PortableServer::POA *poa, bool is_pull) const =0
 Builds a channel element for remote transport in both directions.
virtual
base::ChannelElementBase::shared_ptr 
createStream (base::PortInterface *, const ConnPolicy &, bool) const
 The CORBA transport does not support creating 'CORBA' streams.

Detailed Description

template<class T>
class RTT::corba::CorbaTemplateProtocol< T >

For each transportable type T, specify the conversion functions.

Definition at line 59 of file CorbaTemplateProtocol.hpp.


Member Function Documentation

virtual CRemoteChannelElement_i* RTT::corba::CorbaTypeTransporter::createChannelElement_i ( DataFlowInterface sender,
::PortableServer::POA *  poa,
bool  is_pull 
) const [pure virtual, inherited]

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.

Implemented in RTT::corba::CorbaFallBackProtocol.

template<class T >
virtual base::DataSourceBase::shared_ptr RTT::corba::CorbaTemplateProtocol< T >::createDataSource ( const CORBA::Any *  any) const [inline, virtual]

Create a Data Source from an any.

Returns:
null if no conversion could be made.

Implements RTT::corba::CorbaTypeTransporter.

Definition at line 107 of file CorbaTemplateProtocol.hpp.

References RTT::corba::CorbaTemplateProtocol< T >::updateFromAny().

template<class T >
virtual base::DataSourceBase::shared_ptr RTT::corba::CorbaTemplateProtocol< T >::createPropertyDataSource ( CService_ptr  serv,
const std::string &  vname 
) [inline, virtual]

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 141 of file CorbaTemplateProtocol.hpp.

base::ChannelElementBase::shared_ptr CorbaTypeTransporter::createStream ( base::PortInterface ,
const ConnPolicy p,
bool   
) const [virtual, inherited]

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

Returns:
null

Implements RTT::types::TypeTransporter.

Reimplemented in RTT::corba::CorbaFallBackProtocol.

Definition at line 52 of file CorbaTypeTransporter.cpp.


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