Back to index

salome-med  6.5.0
MEDMEM_DriversDef.hxx
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 
00023 # ifndef DRIVERS_DEF_HXX
00024 # define DRIVERS_DEF_HXX
00025 
00026 #include <MEDMEM.hxx>
00027 
00028 // STL
00029 # include <string>
00030 # include <list>
00031 # include <map>
00032 
00033 using namespace std ;
00034 
00035 #include "MEDMEM_define.hxx"
00036 #include "MEDMEM_Utilities.hxx"
00037 
00038 namespace MED_EN {
00046 //----------------------------------------
00047 class MEDMEM_EXPORT GEO_NAME : public map<int,string>
00048 //----------------------------------------
00049 {
00050   
00051 public :
00052   
00053   GEO_NAME();
00054   ~GEO_NAME();
00055   string & operator[]( const MED_EN::medGeometryElement &c ) const;
00056 } ;
00057 
00058 static const GEO_NAME geoNames ;
00059 
00060 //                              ____________________________    
00061   
00070 //----------------------------------------
00071 class MEDMEM_EXPORT ENT_NAME : public map<int,string>
00072 //----------------------------------------
00073 {
00074   
00075 public :
00076 
00077   ENT_NAME ();
00078   ~ENT_NAME();
00079   string & operator[]( const MED_EN::medEntityMesh &c ) const;
00080 } ;
00081 
00082 static const ENT_NAME entNames ;
00083 
00084 //                              ____________________________    
00085 
00095 //--------------------------------------------------------------------------------
00096 class MEDMEM_EXPORT MESH_ENTITIES : public map<int, const list<MED_EN::medGeometryElement> >
00097 //--------------------------------------------------------------------------------
00098 {
00099 
00100 public :
00101 
00102   MESH_ENTITIES ();
00103   ~MESH_ENTITIES();
00104   const list<MED_EN::medGeometryElement> & operator[]( const  MED_EN::medEntityMesh &c ) const;
00105   
00106 private:
00109   list<MED_EN::medGeometryElement> & operator[]( const  MED_EN::medEntityMesh &c );
00110   
00111 } ;
00112 
00113 static const MESH_ENTITIES meshEntities ;
00114 
00115 } // End Of NameSpace MED_EN
00116 
00117 #endif
00118