Back to index

salome-med  6.5.0
MEDCouplingMeshFieldFactoryComponentClt.hxx
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  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 __MEDCOUPLINGCORBAFIELDFACTORYCOMPONENTCLT_HXX__
00021 #define __MEDCOUPLINGCORBAFIELDFACTORYCOMPONENTCLT_HXX__
00022 
00023 #include "SALOMEconfig.h"
00024 #ifdef WNT
00025 #define NOMINMAX
00026 #endif
00027 #include CORBA_CLIENT_HEADER(MEDCouplingCorbaServantTest)
00028 
00029 #include <cppunit/extensions/HelperMacros.h>
00030 
00031 namespace ParaMEDMEM
00032 {
00033   class MEDCouplingUMesh;
00034 }
00035 
00036 namespace SALOME_TEST
00037 {
00038   class MEDCouplingCorbaServBasicsTestClt : public CppUnit::TestFixture
00039   {
00040     CPPUNIT_TEST_SUITE(MEDCouplingCorbaServBasicsTestClt);
00041     CPPUNIT_TEST( checkBaseCorbaFetching );
00042     CPPUNIT_TEST( checkContentOfFetched1DMesh );
00043     CPPUNIT_TEST( checkCorbaFetching2D );
00044     CPPUNIT_TEST( checkContentOfFetched2DMesh );
00045     CPPUNIT_TEST( checkMultiFetchingToTestMemoryManagement );
00046     CPPUNIT_TEST( checkCorbaFetching3D );
00047     CPPUNIT_TEST( checkContentOfFetched3DMesh );
00048     CPPUNIT_TEST( checkCorbaFetching3DSurf );
00049     CPPUNIT_TEST( checkContentOfFetched3DSurfMesh );
00050     CPPUNIT_TEST( checkCorbaFetching0D );
00051     CPPUNIT_TEST( checkCorbaFetchingM1D );
00052     CPPUNIT_TEST( checkCorbaFetchingExtruded );
00053     CPPUNIT_TEST( checkCorbaFetchingCMesh );
00054     CPPUNIT_TEST( checkCorbaField2DNTFetching );
00055     CPPUNIT_TEST( checkCorbaField2DNTMultiFetching );
00056     CPPUNIT_TEST( checkCorbaField2DNTMultiFetchingMT );
00057     CPPUNIT_TEST( checkCorbaFieldNode2DNTFetching );
00058     CPPUNIT_TEST( checkCorbaField3DNTFetching );
00059     CPPUNIT_TEST( checkCorbaField3DSurfWTFetching );
00060     CPPUNIT_TEST( checkCorbaField3DSurfCOTIFetching );
00061     CPPUNIT_TEST( checkCorbaField2DLTFetching );
00062     CPPUNIT_TEST( checkCorbaFieldGaussPt2DWTFetching );
00063     CPPUNIT_TEST( checkCorbaFieldGaussPtNE2DWTFetching );
00064     CPPUNIT_TEST( checkCorbaFieldVectorOnExtrudedWT );
00065     CPPUNIT_TEST( checkCorbaFieldVectorOnCMeshWT );
00066     CPPUNIT_TEST( checkCorbaFieldTemplateCellOn2D );
00067     CPPUNIT_TEST( checkCorbaFieldTemplateNodeOn2D );
00068     CPPUNIT_TEST( checkCorbaFieldTemplateGaussPtOn2D );
00069     CPPUNIT_TEST( checkCorbaFieldTemplateGaussNEOn2D );
00070     CPPUNIT_TEST( checkCorbaMultiFields1 );
00071     CPPUNIT_TEST( checkCorbaArrayDouble1 );
00072     CPPUNIT_TEST( checkCorbaArrayDouble2 );
00073     CPPUNIT_TEST( checkCorbaArrayDouble3 );
00074     CPPUNIT_TEST( checkCorbaArrayInt1 );
00075     CPPUNIT_TEST( checkCorbaArrayInt2 );
00076     CPPUNIT_TEST( checkCorbaArrayInt3 );
00077     CPPUNIT_TEST( checkCorbaFetchingCoords1 );
00078     CPPUNIT_TEST( checkCorbaMultiFields2 );
00079     CPPUNIT_TEST( shutdownServer );
00080     CPPUNIT_TEST_SUITE_END();
00081   public:
00082     void checkBaseCorbaFetching();
00083     void checkContentOfFetched1DMesh();
00084     void checkCorbaFetching2D();
00085     void checkContentOfFetched2DMesh();
00086     void checkMultiFetchingToTestMemoryManagement();
00087     void checkCorbaFetching3D();
00088     void checkContentOfFetched3DMesh();
00089     void checkCorbaFetching3DSurf();
00090     void checkContentOfFetched3DSurfMesh();
00091     void checkCorbaFetching0D();
00092     void checkCorbaFetchingM1D();
00093     void checkCorbaFetchingExtruded();
00094     void checkCorbaFetchingCMesh();
00095     void checkCorbaField2DNTFetching();
00096     void checkCorbaField2DNTMultiFetching();
00097     void checkCorbaField2DNTMultiFetchingMT();
00098     void checkCorbaFieldNode2DNTFetching();
00099     void checkCorbaField3DNTFetching();
00100     void checkCorbaField3DSurfWTFetching();
00101     void checkCorbaField3DSurfCOTIFetching();
00102     void checkCorbaField2DLTFetching();
00103     void checkCorbaFieldGaussPt2DWTFetching();
00104     void checkCorbaFieldGaussPtNE2DWTFetching();
00105     void checkCorbaFieldVectorOnExtrudedWT();
00106     void checkCorbaFieldVectorOnCMeshWT();
00107     void checkCorbaFieldTemplateCellOn2D();
00108     void checkCorbaFieldTemplateNodeOn2D();
00109     void checkCorbaFieldTemplateGaussPtOn2D();
00110     void checkCorbaFieldTemplateGaussNEOn2D();
00111     void checkCorbaMultiFields1();
00112     void checkCorbaArrayDouble1();
00113     void checkCorbaArrayDouble2();
00114     void checkCorbaArrayDouble3();
00115     void checkCorbaArrayInt1();
00116     void checkCorbaArrayInt2();
00117     void checkCorbaArrayInt3();
00118     void checkCorbaFetchingCoords1();
00119     void checkCorbaMultiFields2();
00120     void shutdownServer();
00121   private:
00122     static void *checkCorbaField2DNTMultiFetchingMTStatic(void *stack);
00123   private:
00124     static SALOME_TEST::MEDCouplingMeshFieldFactory_ptr _objC;
00125     static ParaMEDMEM::MEDCouplingUMesh *_mesh_from_distant;
00126   public:
00127     static int _argc;
00128     static char **_argv;
00129     static CORBA::ORB_var _orb;
00130   };
00131 }
00132 
00133 #endif