Public Member Functions | List of all members
RTT::types::TransportPlugin Class Referenceabstract

#include <TransportPlugin.hpp>

Inheritance diagram for RTT::types::TransportPlugin:
Inheritance graph
[legend]

Public Member Functions

virtual std::string getName () const =0
 
virtual std::string getTransportName () const =0
 
virtual std::string getTypekitName () const =0
 
virtual bool registerTransport (std::string type_name, TypeInfo *ti)=0
 
virtual ~TransportPlugin ()
 

Detailed Description

A class which registers TypeTransporter instances to types. Use the ORO_TYPEKIT_PLUGIN macro to have the plugin framework automatically load all types supported by this plugin (using registerTransport() below).

A transport's 'fully qualified name' consists of the protocol name followed by a "://" and the name of the typekit it is for. For example:

"CORBA://kdl-types/frame". The protocol name may not contain slashes.

Definition at line 56 of file types/TransportPlugin.hpp.

Constructor & Destructor Documentation

virtual RTT::types::TransportPlugin::~TransportPlugin ( )
inlinevirtual

Definition at line 59 of file types/TransportPlugin.hpp.

Member Function Documentation

virtual std::string RTT::types::TransportPlugin::getName ( ) const
pure virtual

Each plugin must have a unique name. This name is used globally in the process to identify this instance.

Implemented in RTT::corba::CorbaLibPlugin, RTT::mqueue::MQLibPlugin, and RTT::mqueue::MQLibPlugin.

virtual std::string RTT::types::TransportPlugin::getTransportName ( ) const
pure virtual

Returns the (protocol) name of this transport. May not contain slashes. e.g. "CORBA", "mqueue, "rostcp",...

Implemented in RTT::corba::CorbaLibPlugin, RTT::mqueue::MQLibPlugin, and RTT::mqueue::MQLibPlugin.

virtual std::string RTT::types::TransportPlugin::getTypekitName ( ) const
pure virtual

Returns the intended typekit name of this plugin. This is informative and only for user display. e.g. "rtt-types", "kdl-types/frame",...

Implemented in RTT::corba::CorbaLibPlugin, RTT::mqueue::MQLibPlugin, and RTT::mqueue::MQLibPlugin.

virtual bool RTT::types::TransportPlugin::registerTransport ( std::string  type_name,
TypeInfo ti 
)
pure virtual

Add a transport for the given type to the types::TypeInfo instance.

Parameters
type_nameThe name of the type to transport
tiThe type to which transports may be added.
Returns
false if no transport was added, true otherwise.

Implemented in RTT::corba::CorbaLibPlugin, RTT::mqueue::MQLibPlugin, and RTT::mqueue::MQLibPlugin.


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


rtt
Author(s): RTT Developers
autogenerated on Tue Jun 25 2019 19:33:47