Statistiques
| Révision :

root / initAFM_plane.cpp

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

1 1 rmalgat
2 1 rmalgat
/******************************************************************************
3 1 rmalgat
*       SOFA, Simulation Open-Framework Architecture, version 1.0 RC 1        *
4 1 rmalgat
*                (c) 2006-2011 MGH, INRIA, USTL, UJF, CNRS                    *
5 1 rmalgat
*                                                                             *
6 1 rmalgat
* This library is free software; you can redistribute it and/or modify it     *
7 1 rmalgat
* under the terms of the GNU Lesser General Public License as published by    *
8 1 rmalgat
* the Free Software Foundation; either version 2.1 of the License, or (at     *
9 1 rmalgat
* your option) any later version.                                             *
10 1 rmalgat
*                                                                             *
11 1 rmalgat
* This library is distributed in the hope that it will be useful, but WITHOUT *
12 1 rmalgat
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or       *
13 1 rmalgat
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License *
14 1 rmalgat
* for more details.                                                           *
15 1 rmalgat
*                                                                             *
16 1 rmalgat
* You should have received a copy of the GNU Lesser General Public License    *
17 1 rmalgat
* along with this library; if not, write to the Free Software Foundation,     *
18 1 rmalgat
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA.          *
19 1 rmalgat
*******************************************************************************
20 1 rmalgat
*                               SOFA :: Plugins                               *
21 1 rmalgat
*                                                                             *
22 1 rmalgat
* Authors: The SOFA Team and external contributors (see Authors.txt)          *
23 1 rmalgat
*                                                                             *
24 1 rmalgat
* Contact information: contact@sofa-framework.org                             *
25 1 rmalgat
******************************************************************************/
26 1 rmalgat
#include "initAFM_plane.h"
27 1 rmalgat
28 1 rmalgat
namespace sofa
29 1 rmalgat
{
30 1 rmalgat
31 1 rmalgat
namespace component
32 1 rmalgat
{
33 1 rmalgat
34 1 rmalgat
        //Here are just several convenient functions to help user to know what contains the plugin
35 1 rmalgat
36 1 rmalgat
        extern "C" {
37 1 rmalgat
                SOFA_AFM_plane_API void initExternalModule();
38 1 rmalgat
                SOFA_AFM_plane_API const char* getModuleName();
39 1 rmalgat
                SOFA_AFM_plane_API const char* getModuleVersion();
40 1 rmalgat
                SOFA_AFM_plane_API const char* getModuleLicense();
41 1 rmalgat
                SOFA_AFM_plane_API const char* getModuleDescription();
42 1 rmalgat
                SOFA_AFM_plane_API const char* getModuleComponentList();
43 1 rmalgat
        }
44 1 rmalgat
45 1 rmalgat
        void initExternalModule()
46 1 rmalgat
        {
47 1 rmalgat
                static bool first = true;
48 1 rmalgat
                if (first)
49 1 rmalgat
                {
50 1 rmalgat
                        first = false;
51 1 rmalgat
                }
52 1 rmalgat
        }
53 1 rmalgat
54 1 rmalgat
        const char* getModuleName()
55 1 rmalgat
        {
56 1 rmalgat
          return "AFM_plane";
57 1 rmalgat
        }
58 1 rmalgat
59 1 rmalgat
        const char* getModuleVersion()
60 1 rmalgat
        {
61 1 rmalgat
                return "0.2";
62 1 rmalgat
        }
63 1 rmalgat
64 1 rmalgat
        const char* getModuleLicense()
65 1 rmalgat
        {
66 1 rmalgat
                return "LGPL";
67 1 rmalgat
        }
68 1 rmalgat
69 1 rmalgat
70 1 rmalgat
        const char* getModuleDescription()
71 1 rmalgat
        {
72 1 rmalgat
                return "TODO: replace this with the description of your plugin";
73 1 rmalgat
        }
74 1 rmalgat
75 1 rmalgat
        const char* getModuleComponentList()
76 1 rmalgat
        {
77 1 rmalgat
          /// string containing the names of the classes provided by the plugin
78 1 rmalgat
          return "";
79 1 rmalgat
          //return "MyMappingPendulumInPlane, MyBehaviorModel, MyProjectiveConstraintSet";
80 1 rmalgat
        }
81 1 rmalgat
82 1 rmalgat
83 1 rmalgat
84 1 rmalgat
}
85 1 rmalgat
86 1 rmalgat
}
87 1 rmalgat
88 1 rmalgat
/// Use the SOFA_LINK_CLASS macro for each class, to enable linking on all platforms
89 1 rmalgat
SOFA_LINK_CLASS(MyDefaultContactManager)