00001 // Copyright (C) 2007-2011 CEA/DEN, EDF R&D 00002 // 00003 // This library is free software; you can redistribute it and/or 00004 // modify it under the terms of the GNU Lesser General Public 00005 // License as published by the Free Software Foundation; either 00006 // version 2.1 of the License. 00007 // 00008 // This library is distributed in the hope that it will be useful, 00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 // Lesser General Public License for more details. 00012 // 00013 // You should have received a copy of the GNU Lesser General Public 00014 // License along with this library; if not, write to the Free Software 00015 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00016 // 00017 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com 00018 // 00019 00020 #ifndef __MEDLOADERTEST_HXX__ 00021 #define __MEDLOADERTEST_HXX__ 00022 00023 #include <cppunit/extensions/HelperMacros.h> 00024 00025 namespace ParaMEDMEM 00026 { 00027 class MEDCouplingUMesh; 00028 class MEDCouplingFieldDouble; 00029 00030 class MEDLoaderTest : public CppUnit::TestFixture 00031 { 00032 CPPUNIT_TEST_SUITE(MEDLoaderTest); 00033 CPPUNIT_TEST( testMesh1DRW ); 00034 CPPUNIT_TEST( testMesh2DCurveRW ); 00035 CPPUNIT_TEST( testMesh2DRW ); 00036 CPPUNIT_TEST( testMesh3DSurfRW ); 00037 CPPUNIT_TEST( testMesh3DRW ); 00038 CPPUNIT_TEST( testFieldRW1 ); 00039 CPPUNIT_TEST( testFieldRW2 ); 00040 CPPUNIT_TEST( testFieldRW3 ); 00041 CPPUNIT_TEST( testMultiMeshRW1 ); 00042 CPPUNIT_TEST( testFieldProfilRW1 ); 00043 CPPUNIT_TEST( testFieldNodeProfilRW1 ); 00044 CPPUNIT_TEST( testFieldNodeProfilRW2 ); 00045 CPPUNIT_TEST( testFieldGaussRW1 ); 00046 CPPUNIT_TEST( testFieldGaussNERW1 ); 00047 CPPUNIT_TEST( testLittleStrings1 ); 00048 CPPUNIT_TEST( testMesh3DSurfShuffleRW ); 00049 CPPUNIT_TEST( testFieldShuffleRW1 ); 00050 CPPUNIT_TEST( testMultiFieldShuffleRW1 ); 00051 CPPUNIT_TEST( testWriteUMeshesRW1 ); 00052 CPPUNIT_TEST( testMixCellAndNodesFieldRW1 ); 00053 CPPUNIT_TEST( testGetAllFieldNamesRW1 ); 00054 CPPUNIT_TEST_SUITE_END(); 00055 public: 00056 void testMesh1DRW(); 00057 void testMesh2DCurveRW(); 00058 void testMesh2DRW(); 00059 void testMesh3DSurfRW(); 00060 void testMesh3DRW(); 00061 void testFieldRW1(); 00062 void testFieldRW2(); 00063 void testFieldRW3(); 00064 void testMultiMeshRW1(); 00065 void testFieldProfilRW1(); 00066 void testFieldNodeProfilRW1(); 00067 void testFieldNodeProfilRW2(); 00068 void testFieldGaussRW1(); 00069 void testFieldGaussNERW1(); 00070 void testLittleStrings1(); 00071 void testMesh3DSurfShuffleRW(); 00072 void testFieldShuffleRW1(); 00073 void testMultiFieldShuffleRW1(); 00074 void testWriteUMeshesRW1(); 00075 void testMixCellAndNodesFieldRW1(); 00076 void testGetAllFieldNamesRW1(); 00077 private: 00078 MEDCouplingUMesh *build1DMesh_1(); 00079 MEDCouplingUMesh *build2DCurveMesh_1(); 00080 MEDCouplingUMesh *build2DMesh_1(); 00081 MEDCouplingUMesh *build2DMesh_2(); 00082 MEDCouplingUMesh *build3DSurfMesh_1(); 00083 MEDCouplingUMesh *build3DMesh_1(); 00084 MEDCouplingUMesh *build3DMesh_2(); 00085 MEDCouplingFieldDouble *buildVecFieldOnCells_1(); 00086 MEDCouplingFieldDouble *buildVecFieldOnNodes_1(); 00087 MEDCouplingFieldDouble *buildVecFieldOnGauss_1(); 00088 MEDCouplingFieldDouble *buildVecFieldOnGaussNE_1(); 00089 }; 00090 } 00091 00092 #endif