Orocos Real-Time Toolkit  2.9.0
Classes | Namespaces | Macros
TypekitPlugin.hpp File Reference
#include <string>
#include <vector>
#include "../rtt-config.h"
#include "TypekitRepository.hpp"

Go to the source code of this file.

Classes

class  RTT::types::TypekitPlugin
 This interface defines how additional typekits are loaded into Orocos. More...
 

Namespaces

 RTT
 Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
 
 RTT::types
 Classes for typekits for describing and handling user data types.
 

Macros

#define ORO_TYPEKIT_PLUGIN(TYPEKIT)
 Once you defined your TypekitPlugin or TransportPlugin class, you can use this macro to make it available as a plugin. More...
 

Macro Definition Documentation

#define ORO_TYPEKIT_PLUGIN (   TYPEKIT)
Value:
namespace RTT { class TaskContext; } \
extern "C" { \
if (tc == 0) { \
return true; \
} \
return false; \
} \
RTT_EXPORT std::string getRTTPluginName(); \
std::string getRTTPluginName() { \
TYPEKIT tk; \
return tk.getName(); \
} \
RTT_EXPORT std::string getRTTTargetName(); \
std::string getRTTTargetName() { \
} \
}
#define RTT_EXPORT
Definition: rtt-config.h:98
#define OROCOS_TARGET_NAME
static void Import(TypekitPlugin *tkp)
Import a typekit plugin into the type system of this process.
RTT_EXPORT std::string getRTTPluginName()
Return the unique name of this plugin.
RTT_EXPORT bool loadRTTPlugin(RTT::TaskContext *t)
Instructs this plugin to load itself into the process or a component.
The TaskContext is the C++ representation of an Orocos component.
Definition: TaskContext.hpp:93
RTT_EXPORT std::string getRTTTargetName()
Returns the target name for which this plugin was built.
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
Definition: Activity.cpp:52

Once you defined your TypekitPlugin or TransportPlugin class, you can use this macro to make it available as a plugin.

Note
Do not use this macro inside a namespace ! For example: ORO_TYPEKIT_PLUGIN ( KDL::KDLTypekit ) where KDL::KDLTypekit is a classname, derived from RTT::types::TypekitPlugin or RTT::types::TransportPlugin

Definition at line 131 of file TypekitPlugin.hpp.

Referenced by RTT::mqueue::MQLibPlugin::getName(), RTT::corba::CorbaLibPlugin::getName(), and RTT::types::RealTimeTypekitPlugin::getName().