]> SALOME platform Git repositories - tools/medcoupling.git/blob - src/MEDLoader/Test/MEDLoaderTest.hxx
Salome HOME
feat: new crackAlong method
[tools/medcoupling.git] / src / MEDLoader / Test / MEDLoaderTest.hxx
1 // Copyright (C) 2007-2024  CEA, EDF
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 __MEDLOADERTEST_HXX__
22 #define __MEDLOADERTEST_HXX__
23
24 #include "MEDCouplingFieldInt.hxx"   // this one can not use a class forward
25 #include <cppunit/extensions/HelperMacros.h>
26
27 namespace MEDCoupling
28 {
29   class MEDCouplingUMesh;
30   class MEDCouplingFieldDouble;
31   class MEDCouplingFieldFloat;
32
33   class MEDLoaderTest : public CppUnit::TestFixture
34   {
35     CPPUNIT_TEST_SUITE(MEDLoaderTest);
36     CPPUNIT_TEST( testMesh1DRW );
37     CPPUNIT_TEST( testMesh2DCurveRW );
38     CPPUNIT_TEST( testMesh2DRW );
39     CPPUNIT_TEST( testMesh3DSurfRW );
40     CPPUNIT_TEST( testMesh3DRW );
41     CPPUNIT_TEST( testFieldRW1 );
42     CPPUNIT_TEST( testFieldRW2 );
43     CPPUNIT_TEST( testFieldRW3 );
44     CPPUNIT_TEST( testMultiMeshRW1 );
45     CPPUNIT_TEST( testFieldProfilRW1 );
46     CPPUNIT_TEST( testFieldNodeProfilRW1 );
47     CPPUNIT_TEST( testFieldNodeProfilRW2 );
48     CPPUNIT_TEST( testFieldGaussRW1 );
49     CPPUNIT_TEST( testFieldGaussNERW1 );
50     CPPUNIT_TEST( testLittleStrings1 );
51     CPPUNIT_TEST( testSplitIntoNameAndUnit1 );
52     CPPUNIT_TEST( testMesh3DSurfShuffleRW );
53     CPPUNIT_TEST( testFieldShuffleRW1 );
54     CPPUNIT_TEST( testMultiFieldShuffleRW1 );
55     CPPUNIT_TEST( testWriteUMeshesRW1 );
56     CPPUNIT_TEST( testMixCellAndNodesFieldRW1 );
57     CPPUNIT_TEST( testGetAllFieldNamesRW1 );
58
59     // Previously in ParaMEDMEM:
60     CPPUNIT_TEST(testMEDLoaderRead1);
61     CPPUNIT_TEST(testMEDLoaderPolygonRead);
62     CPPUNIT_TEST(testMEDLoaderPolyhedronRead);
63
64
65     CPPUNIT_TEST_SUITE_END();
66   public:
67     void testMesh1DRW();
68     void testMesh2DCurveRW();
69     void testMesh2DRW();
70     void testMesh3DSurfRW();
71     void testMesh3DRW();
72     void testFieldRW1();
73     void testFieldRW2();
74     void testFieldRW3();
75     void testMultiMeshRW1();
76     void testFieldProfilRW1();
77     void testFieldNodeProfilRW1();
78     void testFieldNodeProfilRW2();
79     void testFieldGaussRW1();
80     void testFieldGaussNERW1();
81     void testLittleStrings1();
82     void testSplitIntoNameAndUnit1();
83     void testMesh3DSurfShuffleRW();
84     void testFieldShuffleRW1();
85     void testMultiFieldShuffleRW1();
86     void testWriteUMeshesRW1();
87     void testMixCellAndNodesFieldRW1();
88     void testGetAllFieldNamesRW1();
89
90     void testMEDLoaderRead1();
91     void testMEDLoaderPolygonRead();
92     void testMEDLoaderPolyhedronRead();
93
94   private:
95     MEDCouplingUMesh *build1DMesh_1();
96     MEDCouplingUMesh *build2DCurveMesh_1();
97     MEDCouplingUMesh *build2DMesh_1();
98     MEDCouplingUMesh *build2DMesh_2();
99     MEDCouplingUMesh *build3DSurfMesh_1();
100     MEDCouplingUMesh *build3DMesh_1();
101     MEDCouplingUMesh *build3DMesh_2();
102     MEDCouplingFieldDouble *buildVecFieldOnCells_1();
103     MEDCouplingFieldInt    *buildIntVecFieldOnCells_1();
104     MEDCouplingFieldInt64  *buildInt64VecFieldOnCells_1();
105     MEDCouplingFieldFloat  *buildFloatVecFieldOnCells_1();
106     MEDCouplingFieldDouble *buildVecFieldOnNodes_1();
107     MEDCouplingFieldDouble *buildVecFieldOnGauss_1();
108     MEDCouplingFieldDouble *buildVecFieldOnGaussNE_1();
109
110   };
111 }
112
113 #endif