Salome HOME
5fb87219d59839284a5b84061db267485b316455
[modules/med.git] / src / MEDCalc / cmp / MEDFactoryClient.hxx
1 // Copyright (C) 2007-2022  CEA/DEN, EDF R&D
2 //
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.
7 //
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.
12 //
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
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19
20 // Author : Guillaume Boulant (EDF)
21
22 #ifndef _MEDFACTORY_CLIENT_HXX_
23 #define _MEDFACTORY_CLIENT_HXX_
24
25
26 #include <SALOMEconfig.h>
27 #include CORBA_CLIENT_HEADER(MEDFactory)
28 #include CORBA_CLIENT_HEADER(MEDDataManager)
29 #include CORBA_CLIENT_HEADER(MEDCalculator)
30 #include CORBA_CLIENT_HEADER(MEDPresentationManager)
31 #include CORBA_CLIENT_HEADER(MEDCommandsHistoryManager)
32
33 #include "MEDCALC.hxx"
34
35 // This helper manages static variables binded on main objects of the
36 // XMED context, so that they could be initialized once and shared in
37 // the whole gui context. It prevents to defined an attribute in each
38 // class while this instance are singleton instances.
39
40 namespace MEDFactoryClient {
41   MEDCALC_EXPORT MEDCALC::MEDFactory_ptr getFactory();
42   MEDCALC_EXPORT MEDCALC::MEDDataManager_ptr getDataManager();
43   MEDCALC_EXPORT MEDCALC::MEDCalculator_ptr getCalculator();
44   MEDCALC_EXPORT MEDCALC::MEDPresentationManager_ptr getPresentationManager();
45   MEDCALC_EXPORT MEDCALC::MEDCommandsHistoryManager_ptr getCommandsHistoryManager();
46 }
47
48 #endif // _MEDFACTORY_CLIENT_HXX_