Statistiques
| Révision :

root / initAFM_plane.cpp @ 1

Historique | Voir | Annoter | Télécharger (3,25 ko)

1
 
2
/******************************************************************************
3
*       SOFA, Simulation Open-Framework Architecture, version 1.0 RC 1        *
4
*                (c) 2006-2011 MGH, INRIA, USTL, UJF, CNRS                    *
5
*                                                                             *
6
* This library is free software; you can redistribute it and/or modify it     *
7
* under the terms of the GNU Lesser General Public License as published by    *
8
* the Free Software Foundation; either version 2.1 of the License, or (at     *
9
* your option) any later version.                                             *
10
*                                                                             *
11
* This library is distributed in the hope that it will be useful, but WITHOUT *
12
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or       *
13
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License *
14
* for more details.                                                           *
15
*                                                                             *
16
* You should have received a copy of the GNU Lesser General Public License    *
17
* along with this library; if not, write to the Free Software Foundation,     *
18
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA.          *
19
*******************************************************************************
20
*                               SOFA :: Plugins                               *
21
*                                                                             *
22
* Authors: The SOFA Team and external contributors (see Authors.txt)          *
23
*                                                                             *
24
* Contact information: contact@sofa-framework.org                             *
25
******************************************************************************/
26
#include "initAFM_plane.h"
27

    
28
namespace sofa
29
{
30

    
31
namespace component
32
{
33

    
34
        //Here are just several convenient functions to help user to know what contains the plugin
35

    
36
        extern "C" {
37
                SOFA_AFM_plane_API void initExternalModule();
38
                SOFA_AFM_plane_API const char* getModuleName();
39
                SOFA_AFM_plane_API const char* getModuleVersion();
40
                SOFA_AFM_plane_API const char* getModuleLicense();
41
                SOFA_AFM_plane_API const char* getModuleDescription();
42
                SOFA_AFM_plane_API const char* getModuleComponentList();
43
        }
44
        
45
        void initExternalModule()
46
        {
47
                static bool first = true;
48
                if (first)
49
                {
50
                        first = false;
51
                }
52
        }
53

    
54
        const char* getModuleName()
55
        {
56
          return "AFM_plane";
57
        }
58

    
59
        const char* getModuleVersion()
60
        {
61
                return "0.2";
62
        }
63

    
64
        const char* getModuleLicense()
65
        {
66
                return "LGPL";
67
        }
68

    
69

    
70
        const char* getModuleDescription()
71
        {
72
                return "TODO: replace this with the description of your plugin";
73
        }
74

    
75
        const char* getModuleComponentList()
76
        {
77
          /// string containing the names of the classes provided by the plugin
78
          return "";
79
          //return "MyMappingPendulumInPlane, MyBehaviorModel, MyProjectiveConstraintSet";
80
        }
81

    
82

    
83

    
84
} 
85

    
86
} 
87

    
88
/// Use the SOFA_LINK_CLASS macro for each class, to enable linking on all platforms
89
SOFA_LINK_CLASS(MyDefaultContactManager)