Salome HOME
Convenience factory client
[modules/med.git] / src / MEDCalc / cmp / MEDFactoryClient.hxx
1 // Copyright (C) 2007-2015  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
31 #include "MEDCALC.hxx"
32
33 // This helper manages static variables binded on main objects of the
34 // XMED context, so that they could be initialized once and shared in
35 // the whole gui context. It prevents to defined an attribute in each
36 // class while this instance are singleton instances.
37
38 namespace MEDFactoryClient {
39   MEDCALC_EXPORT MEDCALC::MEDFactory_ptr getFactory();
40   MEDCALC_EXPORT MEDCALC::MEDDataManager_ptr getDataManager();
41   MEDCALC_EXPORT MEDCALC::MEDCalculator_ptr getCalculator();
42 }
43
44 #endif // _MEDFACTORY_CLIENT_HXX_