Debian Codegraph @

src/3rdParty/salomesmesh/inc/MED_Common.hxx

raw
1 // Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License, or (at your option) any later version.
10 //
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
15 //
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 //
20 // See http://www.salome-platform.org/ or email : [email protected]
21 //
22
23 #ifndef MED_Common_HeaderFile
24 #define MED_Common_HeaderFile
25
26 #include "MED_WrapperBase.hxx"
27
28 #include <string>
29 #include <set>
30 #include <map>
31
32 #include <hdf5.h>
33
34 #include <boost/tuple/tuple.hpp>
35
36 #include "MED_Vector.hxx"
37 #include "MED_SharedPtr.hxx"
38 #include "MED_SliceArray.hxx"
39
40 #ifdef WIN32
41 #pragma warning(disable:4099)
42 #endif
43
44 namespace MED{
45
46 enum EVersion {eVUnknown = -1, eV2_1, eV2_2};
47
48 typedef enum {eFAUX, eVRAI} EBooleen ;
49 typedef double TFloat;
50 #if defined(HAVE_F77INT64)
51 typedef long TInt;
52 #else
53 typedef int TInt;
54 #endif
55 typedef hid_t TIdt;
56 typedef herr_t TErr;
57
58 typedef enum {eFULL_INTERLACE, eNO_INTERLACE} EModeSwitch;
59
60 typedef enum {eFLOAT64=6, eINT=24, eLONG=26 } ETypeChamp;
61
62 typedef enum {eNON_STRUCTURE, eSTRUCTURE} EMaillage;
63
64 typedef enum {eCART, eCYL, eSPHER} ERepere;
65
66 typedef enum {eNOD, eDESC} EConnectivite ;
67
68 typedef enum {ePOINT1=1, eSEG2=102, eSEG3=103, eTRIA3=203,
69 eQUAD4=204, eTRIA6=206, eTRIA7=207, eQUAD8=208, eQUAD9=209,eTETRA4=304,
70 ePYRA5=305, ePENTA6=306, eHEXA8=308, eOCTA12=312, eTETRA10=310,
71 ePYRA13=313, ePENTA15=315, eHEXA20=320, eHEXA27=327,
72 ePOLYGONE=400, ePOLYGON2=420, ePOLYEDRE=500, eNONE=0,
73 eBALL=1101 /*no such a type in med.h, it's just a trick*/,
74 eAllGeoType=-1 } EGeometrieElement;
75
76 typedef enum {eMAILLE, eFACE, eARETE, eNOEUD, eNOEUD_ELEMENT, eSTRUCT_ELEMENT} EEntiteMaillage;
77
78 typedef enum {eNO_PFLMOD, eGLOBAL, eCOMPACT} EModeProfil;
79
80 typedef enum {eGRILLE_CARTESIENNE, eGRILLE_POLAIRE, eGRILLE_STANDARD} EGrilleType;
81
82 typedef enum {eCOOR, eCONN, eNOM, eNUM, eFAM, eCOOR_IND1, eCOOR_IND2, eCOOR_IND3} ETable;
83
84 typedef TVector<TFloat> TFloatVector;
85 typedef TVector<std::string> TStringVector;
86 typedef TVector<TInt> TIntVector;
87 typedef std::set<std::string> TStringSet;
88
89 typedef std::map<EGeometrieElement,TInt> TGeom2Size;
90 typedef std::map<EEntiteMaillage,TGeom2Size> TEntityInfo;
91
92 typedef std::set<EGeometrieElement> TGeomSet;
93 typedef std::map<EEntiteMaillage,TGeomSet> TEntity2GeomSet;
94
95 MEDWRAPPER_EXPORT
96 const TEntity2GeomSet&
97 GetEntity2GeomSet();
98
99 template<EVersion>
100 TInt MEDWRAPPER_EXPORT
101 GetDESCLength();
102
103 template<EVersion>
104 TInt MEDWRAPPER_EXPORT
105 GetIDENTLength();
106
107 template<EVersion>
108 TInt MEDWRAPPER_EXPORT
109 GetNOMLength();
110
111 template<EVersion>
112 TInt MEDWRAPPER_EXPORT
113 GetLNOMLength();
114
115 template<EVersion>
116 TInt MEDWRAPPER_EXPORT
117 GetPNOMLength();
118
119 template<EVersion>
120 void MEDWRAPPER_EXPORT
121 GetVersionRelease(TInt& majeur, TInt& mineur, TInt& release);
122
123 template<EVersion>
124 MEDWRAPPER_EXPORT
125 TInt
126 GetNbConn(EGeometrieElement typmai,
127 EEntiteMaillage typent,
128 TInt mdim);
129
130 MEDWRAPPER_EXPORT
131 TInt
132 GetNbNodes(EGeometrieElement typmai);
133
134 struct TNameInfo;
135 typedef SharedPtr<TNameInfo> PNameInfo;
136
137 struct TMeshInfo;
138 typedef SharedPtr<TMeshInfo> PMeshInfo;
139
140 struct TFamilyInfo;
141 typedef SharedPtr<TFamilyInfo> PFamilyInfo;
142
143 struct TElemInfo;
144 typedef SharedPtr<TElemInfo> PElemInfo;
145
146 struct TNodeInfo;
147 typedef SharedPtr<TNodeInfo> PNodeInfo;
148
149 struct TPolygoneInfo;
150 typedef SharedPtr<TPolygoneInfo> PPolygoneInfo;
151
152 struct TPolyedreInfo;
153 typedef SharedPtr<TPolyedreInfo> PPolyedreInfo;
154
155 struct TCellInfo;
156 typedef SharedPtr<TCellInfo> PCellInfo;
157
158 struct TBallInfo;
159 typedef SharedPtr<TBallInfo> PBallInfo;
160
161 struct TFieldInfo;
162 typedef SharedPtr<TFieldInfo> PFieldInfo;
163
164 struct TTimeStampInfo;
165 typedef SharedPtr<TTimeStampInfo> PTimeStampInfo;
166
167 struct TProfileInfo;
168 typedef SharedPtr<TProfileInfo> PProfileInfo;
169
170 struct TGaussInfo;
171 typedef SharedPtr<TGaussInfo> PGaussInfo;
172
173 struct TGrilleInfo;
174 typedef SharedPtr<TGrilleInfo> PGrilleInfo;
175
176 struct TTimeStampValueBase;
177 typedef SharedPtr<TTimeStampValueBase> PTimeStampValueBase;
178
179 struct TWrapper;
180 typedef SharedPtr<TWrapper> PWrapper;
181 }
182
183
184 #endif