Plugin.hpp File Reference

#include <string>
#include "../rtt-config.h"
Include dependency graph for rtt/plugin/Plugin.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  RTT
 

Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.


Functions

RTT_EXPORT std::string getRTTPluginName ()
RTT_EXPORT std::string getRTTTargetName ()
RTT_EXPORT bool loadRTTPlugin (RTT::TaskContext *t)

Function Documentation

RTT_EXPORT std::string getRTTPluginName (  ) 

Return the unique name of this plugin. No two plugins with the same name will be allowed to live in a single process.

RTT_EXPORT std::string getRTTTargetName (  ) 

Returns the target name for which this plugin was built.

Returns:
The name as set by OROCOS_TARGET. When the empty string is returned, it is assumed that the loadRTTPlugin function will check if this plugin may be loaded or not.
RTT_EXPORT bool loadRTTPlugin ( RTT::TaskContext t  ) 

Instructs this plugin to load itself into the process or a component. This function will first be called with t being equal to zero, giving the plugin the opportunity to load something in the whole process. Implement in this function any startup code your plugin requires. This function should not throw.

Parameters:
t The optional TaskContext which is loading this plugin. Is zero when the plugin is loaded into the process, non-zero when loaded in a TaskContext. A plugin may choose to load only in the process and not in a TaskContext (typekits for example). If a plugin only wants to load in a TaskContext, it must return true when t is zero, such that the plugin remains loaded in the process.
Returns:
true if the loading succeeded, false otherwise.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


rtt
Author(s): RTT Developers
autogenerated on Fri Jan 11 09:47:20 2013