--- /dev/null
+// Copyright (C) 2007-2015 CEA/DEN, EDF R&D
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+
+// Authors : Guillaume Boulant (EDF) - 01/06/2011
+
+#ifndef _MED_CALCULATOR_I_HXX_
+#define _MED_CALCULATOR_I_HXX_
+
+#include <SALOMEconfig.h>
+#include CORBA_SERVER_HEADER(MEDDataManager)
+#include CORBA_SERVER_HEADER(MEDCalculator)
+#include "SALOME_GenericObj_i.hh"
+
+#include "MEDDataManager_i.hxx"
+
+#include "MEDCALC.hxx"
+class MEDCALC_EXPORT MEDCalculator_i: public POA_MEDCALC::MEDCalculator,
+ public SALOME::GenericObj_i
+{
+public:
+
+ //
+ // ===========================================================
+ // Functions specified in the IDL interface
+ // ===========================================================
+ //
+ MEDCALC::FieldHandler * add(const MEDCALC::FieldHandler & f1_hdl, const MEDCALC::FieldHandler & f2_hdl);
+ MEDCALC::FieldHandler * sub(const MEDCALC::FieldHandler & f1_hdl, const MEDCALC::FieldHandler & f2_hdl);
+ MEDCALC::FieldHandler * mul(const MEDCALC::FieldHandler & f1_hdl, const MEDCALC::FieldHandler & f2_hdl);
+ MEDCALC::FieldHandler * div(const MEDCALC::FieldHandler & f1_hdl, const MEDCALC::FieldHandler & f2_hdl);
+ MEDCALC::FieldHandler * pow(const MEDCALC::FieldHandler & f_hdl, CORBA::Long power);
+ MEDCALC::FieldHandler * lin(const MEDCALC::FieldHandler & f_hdl, double factor, double offset);
+ MEDCALC::FieldHandler * dup(const MEDCALC::FieldHandler & f_hdl);
+
+ MEDCALC::FieldHandler * fct(const MEDCALC::FieldHandler & f_hdl,
+ const char * function, CORBA::Long nbResComponents);
+
+ //
+ // ===========================================================
+ // Other public functions (non available via CORBA)
+ // ===========================================================
+ //
+ static MEDCalculator_i * getInstance();
+
+private:
+ MEDCalculator_i();
+ ~MEDCalculator_i();
+
+ // The MEDCalculator is a singleton, whose instance can be obtained
+ // using the getInstance static method.
+ static MEDCalculator_i * _instance;
+
+ MEDDataManager_i * _medDataManager;
+};
+
+#endif // _MED_CALCULATOR_I_HXX_