Code_TYMPAN  4.4.0
Industrial site acoustic simulation
pluginDefaultSolver.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) <2012-2024> <EDF-DTG> <FRANCE>
3  * This file is part of Code_TYMPAN (R).
4  * Code_TYMPAN (R) is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  * Code_TYMPAN (R) is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11  * See the GNU General Public License for more details.
12  * You should have received a copy of the GNU General Public License along
13  * with Code_TYMPAN (R). If not, see <https://www.gnu.org/licenses/>.
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
36  plugin->setSolver(solver);
37  solver->init();
38 }
39 
41 {
42  return plugin;
43 }
44 
45 extern "C" PLUGIN_DECL void stopPlugin()
46 {
47  delete plugin;
48 }
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
void init()
Initialize solver This method must be called after instantiation of a solver.
Definition: TYSolver.cpp:52
Plugin * plugin
Le plugin associe au solver par defaut.
PLUGIN_DECL void startPlugin()
PLUGIN_DECL Plugin * getPlugin()
PLUGIN_DECL void stopPlugin()
#define PLUGIN_DECL
Definition: plugin.h:33