This file defines the Orocos plugin API. More...
#include "rtt-config.h"
#include <string>
Go to the source code of this file.
Namespaces | |
namespace | RTT |
We can't use typedefs since C++ doesn't allow it for templated classes without specifying all the template parameters. | |
Functions | |
RTT_EXPORT bool | loadRTTPlugin (RTT::TaskContext *t) |
Instructs this plugin to load itself into the application. | |
RTT_EXPORT std::string | getRTTPluginName () |
Return the unique name of this plugin. |
This file defines the Orocos plugin API.
A plugin is a dynamic library which has a unique name and can be loaded in a running application. In case the loading is done by an Orocos TaskContext, the plugin is notified of the loading TaskContext. A plugin can reject to load, in which case the library should be unloaded from the application again. Once loaded, a plugin remains in the current process until the process exits.
Definition in file Plugin.hpp.
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 bool loadRTTPlugin | ( | RTT::TaskContext * | t | ) |
Instructs this plugin to load itself into the application.
Implement in this function any startup code your plugin requires. This function should not throw.
t | The optional TaskContext which is loading this plugin. May be zero. |