1 // Copyright (C) 2007-2016 CEA/DEN, EDF R&D
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
8 // This library 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. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 // Author : Guillaume Boulant (EDF)
23 * IMPORTANT NOTE: this file implements the factory interface required
24 * to specify the SALOME GUI part of a module.
26 * The GUI part of a module is an implementation of the generic class
27 * CAM_Module and must be returned here by a factory function called
30 * The function createModule can be designed to switch between several
31 * configurations, but generally the configuration is statically
32 * defined (at build step). The default configuration could be DefaultGui. The
33 * configuration below is MEDModule.
36 #include <FIELDS_version.h>
37 #include "MEDModule.hxx"
38 #include "MEDCALCGUI.hxx"
40 #ifdef __WITH_MEDMEMGUI__
46 /*! This function is the factory for the GUI Module */
47 MEDCALCGUI_EXPORT CAM_Module* createModule()
49 CAM_Module * medModule;
51 #ifdef __WITH_MEDMEMGUI__
52 medModule = new MedGUI();
54 medModule = new MEDModule();
60 /*! This function specifies the version of the module to be displayed in the about dialog box */
61 MEDCALCGUI_EXPORT char* getModuleVersion() {
62 return (char*)SALOMEFIELDS_VERSION_STR;