Salome HOME
d5cf73b208bc9bf0a694bfacb748b96786729d2e
[modules/med.git] / src / MEDCouplingCorba / MEDCouplingFieldTemplateServant.hxx
1 // Copyright (C) 2007-2012  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.
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 #ifndef __MEDCOUPLINGFIELDTEMPLATESERVANT_HXX__
21 #define __MEDCOUPLINGFIELDTEMPLATESERVANT_HXX__
22
23 #include "SALOMEconfig.h"
24 #ifdef WNT
25 #define NOMINMAX
26 #endif
27 #include CORBA_SERVER_HEADER(MEDCouplingCorbaServant)
28 #include "MEDCouplingCorba.hxx"
29 #include "MEDCouplingFieldServant.hxx"
30 #include "MEDCouplingMeshServant.hxx"
31
32 #include <vector>
33
34 namespace ParaMEDMEM
35 {
36   class RefCountObject;
37   class MEDCouplingFieldTemplate;
38   class DataArrayInt;
39   class DataArrayDouble;
40
41   class MEDCOUPLINGCORBA_EXPORT MEDCouplingFieldTemplateServant : public MEDCouplingFieldServant , public virtual POA_SALOME_MED::MEDCouplingFieldTemplateCorbaInterface
42   {
43   public:
44     typedef MEDCouplingFieldTemplate CppType;
45     MEDCouplingFieldTemplateServant(const MEDCouplingFieldTemplate *cppPointerOfMesh);
46   protected:
47     const MEDCouplingFieldTemplate *getPointer() const { return (const MEDCouplingFieldTemplate *)(_cpp_pointer); }
48   protected:
49     void getTinyInfo(SALOME_TYPES::ListOfLong_out la, SALOME_TYPES::ListOfDouble_out da, SALOME_TYPES::ListOfString_out sa);
50     void getSerialisationData(SALOME_TYPES::ListOfLong_out la);
51     CORBA::Boolean ExportDataAs(const char *format, SALOME::GenericObj_out exporter);
52   };
53 }
54
55 #endif