Salome HOME
Copyright update 2022
[modules/med.git] / src / MEDCouplingCorba / Test / MEDCouplingMeshFieldFactoryComponentServ.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 // Author : Anthony Geay (CEA/DEN)
20
21 #ifndef __MEDCOUPLINGCORBAFIELDFACTORYCOMPONENTSERV_HXX__
22 #define __MEDCOUPLINGCORBAFIELDFACTORYCOMPONENTSERV_HXX__
23
24 #include <cppunit/extensions/HelperMacros.h>
25 #include "SALOMEconfig.h"
26 #ifdef WIN32
27 #define NOMINMAX
28 #endif
29 #include CORBA_SERVER_HEADER(MEDCouplingCorbaServantTest)
30
31 namespace MEDCoupling
32 {
33   class MEDCouplingUMesh;
34 }
35
36 namespace SALOME_TEST
37 {
38   class MEDCouplingMeshFieldFactoryComponent : public POA_SALOME_TEST::MEDCouplingMeshFieldFactory
39   {
40   public:
41     MEDCouplingMeshFieldFactoryComponent(CORBA::ORB_ptr orb);
42     void destroyFactory();
43     void shutdownOrb();
44     SALOME_MED::MEDCouplingUMeshCorbaInterface_ptr get1DMesh();
45     SALOME_MED::MEDCouplingUMeshCorbaInterface_ptr get2DMesh();
46     SALOME_MED::MEDCouplingUMeshCorbaInterface_ptr get3DMesh();
47     SALOME_MED::MEDCouplingUMeshCorbaInterface_ptr get3DSurfMesh();
48     SALOME_MED::MEDCouplingUMeshCorbaInterface_ptr get0DMesh();
49     SALOME_MED::MEDCouplingUMeshCorbaInterface_ptr getM1DMesh();
50     SALOME_MED::MEDCouplingExtrudedMeshCorbaInterface_ptr getExtrudedMesh();
51     SALOME_MED::MEDCouplingCMeshCorbaInterface_ptr getCMesh();
52     SALOME_MED::MEDCouplingIMeshCorbaInterface_ptr getIMesh();
53     SALOME_MED::MEDCouplingCurveLinearMeshCorbaInterface_ptr getCLMesh();
54     SALOME_MED::MEDCoupling1SGTUMeshCorbaInterface_ptr get1SGTUMesh();
55     SALOME_MED::MEDCoupling1DGTUMeshCorbaInterface_ptr get1DGTUMesh();
56     SALOME_MED::MEDCouplingFieldDoubleCorbaInterface_ptr getFieldScalarOn2DNT();
57     SALOME_MED::MEDCouplingFieldDoubleCorbaInterface_ptr getFieldNodeScalarOn2DNT();
58     SALOME_MED::MEDCouplingFieldDoubleCorbaInterface_ptr getFieldScalarOn3DNT();
59     SALOME_MED::MEDCouplingFieldDoubleCorbaInterface_ptr getFieldScalarOn3DSurfWT();
60     SALOME_MED::MEDCouplingFieldDoubleCorbaInterface_ptr getFieldScalarOn3DSurfCOTI();
61     SALOME_MED::MEDCouplingFieldDoubleCorbaInterface_ptr getFieldScalarOn2DLT();
62     SALOME_MED::MEDCouplingFieldDoubleCorbaInterface_ptr getFieldGaussPt2DWT();
63     SALOME_MED::MEDCouplingFieldDoubleCorbaInterface_ptr getFieldGaussPtNE2DWT();
64     SALOME_MED::MEDCouplingFieldDoubleCorbaInterface_ptr getFieldVectorOnExtrudedWT();
65     SALOME_MED::MEDCouplingFieldDoubleCorbaInterface_ptr getFieldVectorOnCMeshWT();
66     SALOME_MED::MEDCouplingFieldTemplateCorbaInterface_ptr getFieldTemplateCellOn2D();
67     SALOME_MED::MEDCouplingFieldTemplateCorbaInterface_ptr getFieldTemplateNodeOn2D();
68     SALOME_MED::MEDCouplingFieldTemplateCorbaInterface_ptr getFieldTemplateGaussPtOn2D();
69     SALOME_MED::MEDCouplingFieldTemplateCorbaInterface_ptr getFieldTemplateGaussNEOn2D();
70     SALOME_MED::MEDCouplingMultiFieldsCorbaInterface_ptr getMultiFields1();
71     SALOME_MED::DataArrayDoubleCorbaInterface_ptr getArrayDouble1();
72     SALOME_MED::DataArrayDoubleCorbaInterface_ptr getArrayDouble2();
73     SALOME_MED::DataArrayDoubleCorbaInterface_ptr getArrayDouble3();
74     SALOME_MED::DataArrayIntCorbaInterface_ptr getArrayInt1();
75     SALOME_MED::DataArrayIntCorbaInterface_ptr getArrayInt2();
76     SALOME_MED::DataArrayIntCorbaInterface_ptr getArrayInt3();
77     SALOME_MED::MEDCouplingFieldOverTimeCorbaInterface_ptr getMultiFields2();
78   private:
79     CORBA::ORB_ptr _orb;
80   };
81 }
82
83 #endif