Orocos Real-Time Toolkit  2.8.3
Plugin.hpp
Go to the documentation of this file.
1 /***************************************************************************
2  Copyright (c) 2009 S Roderick <xxxkiwi DOT xxxnet AT macxxx DOT comxxx>
3  (remove the x's above)
4 
5  ***************************************************************************
6  * This library is free software; you can redistribute it and/or *
7  * modify it under the terms of the GNU General Public *
8  * License as published by the Free Software Foundation; *
9  * version 2 of the License. *
10  * *
11  * As a special exception, you may use this file as part of a free *
12  * software library without restriction. Specifically, if other files *
13  * instantiate templates or use macros or inline functions from this *
14  * file, or you compile this file and link it with other files to *
15  * produce an executable, this file does not by itself cause the *
16  * resulting executable to be covered by the GNU General Public *
17  * License. This exception does not however invalidate any other *
18  * reasons why the executable file might be covered by the GNU General *
19  * Public License. *
20  * *
21  * This library is distributed in the hope that it will be useful, *
22  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
23  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
24  * Lesser General Public License for more details. *
25  * *
26  * You should have received a copy of the GNU General Public *
27  * License along with this library; if not, write to the Free Software *
28  * Foundation, Inc., 59 Temple Place, *
29  * Suite 330, Boston, MA 02111-1307 USA *
30  * *
31  ***************************************************************************/
32 
33 #ifndef ORO_PLUGIN_HPP
34 #define ORO_PLUGIN_HPP 1
35 
36 // Disable foo() has C-linkage specified, but returns UDT 'bar' which is incompatible with C
37 #ifdef _MSC_VER
38 #pragma warning (disable:4190)
39 #endif
40 
52 #include <string>
53 #include "../rtt-config.h"
54 namespace RTT {
55  class TaskContext;
56 }
57 extern "C" {
74 
79  RTT_EXPORT std::string getRTTPluginName();
80 
88  RTT_EXPORT std::string getRTTTargetName();
89 }
90 
91 #endif
#define RTT_EXPORT
Definition: rtt-config.h:98
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:51