Code_TYMPAN  4.4.0
Industrial site acoustic simulation
plugin.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) <2012-2014> <EDF-R&D> <FRANCE>
3  * This program is free software; you can redistribute it and/or modify
4  * it under the terms of the GNU General Public License as published by
5  * the Free Software Foundation; either version 2 of the License, or
6  * (at your option) any later version.
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10  * See the GNU General Public License for more details.
11  * You should have received a copy of the GNU General Public License along
12  * with this program; if not, write to the Free Software Foundation, Inc.,
13  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
14  */
15 
20 #include "Tympan/core/plugin.h"
22 
24 
25 extern "C" PLUGIN_DECL void startPlugin()
26 {
27  plugin = new Plugin();
28  // Information sur le plugin
29  plugin->setName("DefaultSolver");
30  plugin->setAuthor("Projet_Tympan");
31  plugin->setVersion("1.0");
32  plugin->setDescription("Solveur acoustique par defaut integre a l'application Tympan");
33  plugin->setUUID(OGenID("{A98B320C-44C4-47a9-B689-1DD352DAA8B2}"));
34  // Creation du solver
35  plugin->setSolver(new TYSolver());
36 }
37 
39 {
40  return plugin;
41 }
42 
43 extern "C" PLUGIN_DECL void stopPlugin()
44 {
45  delete plugin;
46 }
Plugin * plugin
Le plugin associe au solver 9613.
Definition: plugin.cpp:23
PLUGIN_DECL void startPlugin()
Definition: plugin.cpp:25
PLUGIN_DECL Plugin * getPlugin()
Definition: plugin.cpp:38
PLUGIN_DECL void stopPlugin()
Definition: plugin.cpp:43
Definition: idgen.h:28
Definition: plugin.h:48
void setSolver(SolverInterface *solver)
Definition: plugin.h:113
void setUUID(const OGenID &uuid)
Definition: plugin.h:76
void setDescription(const QString &description)
Definition: plugin.h:72
void setName(const QString &name)
Definition: plugin.h:60
void setVersion(const QString &version)
Definition: plugin.h:68
void setAuthor(const QString &author)
Definition: plugin.h:64
9613 Solver
Definition: TYSolver.h:38
#define PLUGIN_DECL
Definition: plugin.h:33