Version: 8.3.0
Main Page
Related Pages
Packages
Data Structures
Files
File List
Globals
MED_Common.hxx
Go to the documentation of this file.
1
// Copyright (C) 2007-2016 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 : webmaster.salome@opencascade.com
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 "SALOMEconfig.h"
37
38
#include "
MED_Vector.hxx
"
39
#include "
MED_SharedPtr.hxx
"
40
#include "
MED_SliceArray.hxx
"
41
42
#ifdef WIN32
43
#pragma warning(disable:4099)
44
#endif
45
46
namespace
MED{
47
48
enum
EVersion
{
eVUnknown
= -1,
eV2_1
,
eV2_2
};
49
50
typedef
enum
{
eFAUX
,
eVRAI
}
EBooleen
;
51
typedef
double
TFloat
;
52
#if defined(HAVE_F77INT64)
53
typedef
long
TInt
;
54
#else
55
typedef
int
TInt
;
56
#endif
57
typedef
hid_t
TIdt
;
58
typedef
herr_t
TErr
;
59
60
typedef
enum
{
eFULL_INTERLACE
,
eNO_INTERLACE
}
EModeSwitch
;
61
62
typedef
enum
{
eFLOAT64
=6,
eINT
=24,
eLONG
=26 }
ETypeChamp
;
63
64
typedef
enum
{
eNON_STRUCTURE
,
eSTRUCTURE
}
EMaillage
;
65
66
typedef
enum
{
eCART
,
eCYL
,
eSPHER
}
ERepere
;
67
68
typedef
enum
{
eNOD
,
eDESC
}
EConnectivite
;
69
70
typedef
enum
{
ePOINT1
=1,
eSEG2
=102,
eSEG3
=103,
eTRIA3
=203,
71
eQUAD4
=204,
eTRIA6
=206,
eTRIA7
=207,
eQUAD8
=208,
eQUAD9
=209,
eTETRA4
=304,
72
ePYRA5
=305,
ePENTA6
=306,
eHEXA8
=308,
eOCTA12
=312,
eTETRA10
=310,
73
ePYRA13
=313,
ePENTA15
=315,
eHEXA20
=320,
eHEXA27
=327,
74
ePOLYGONE
=400,
ePOLYGON2
=420,
ePOLYEDRE
=500,
eNONE
=0,
75
eBALL
=1101
/*no such a type in med.h, it's just a trick*/
,
76
eAllGeoType
=-1 }
EGeometrieElement
;
77
78
typedef
enum
{
eMAILLE
,
eFACE
,
eARETE
,
eNOEUD
,
eNOEUD_ELEMENT
,
eSTRUCT_ELEMENT
}
EEntiteMaillage
;
79
80
typedef
enum
{
eNO_PFLMOD
,
eGLOBAL
,
eCOMPACT
}
EModeProfil
;
81
82
typedef
enum
{
eGRILLE_CARTESIENNE
,
eGRILLE_POLAIRE
,
eGRILLE_STANDARD
}
EGrilleType
;
83
84
typedef
enum
{
eCOOR
,
eCONN
,
eNOM
,
eNUM
,
eFAM
,
eCOOR_IND1
,
eCOOR_IND2
,
eCOOR_IND3
}
ETable
;
85
86
typedef
TVector<TFloat>
TFloatVector
;
87
typedef
TVector<std::string>
TStringVector
;
88
typedef
TVector<TInt>
TIntVector
;
89
typedef
std::set<std::string>
TStringSet
;
90
91
typedef
std::map<EGeometrieElement,TInt>
TGeom2Size
;
92
typedef
std::map<EEntiteMaillage,TGeom2Size>
TEntityInfo
;
93
94
typedef
std::set<EGeometrieElement>
TGeomSet
;
95
typedef
std::map<EEntiteMaillage,TGeomSet>
TEntity2GeomSet
;
96
97
MEDWRAPPER_EXPORT
98
const
TEntity2GeomSet
&
99
GetEntity2GeomSet
();
100
101
template
<EVersion>
102
TInt
MEDWRAPPER_EXPORT
103
GetDESCLength
();
104
105
template
<EVersion>
106
TInt
MEDWRAPPER_EXPORT
107
GetIDENTLength
();
108
109
template
<EVersion>
110
TInt
MEDWRAPPER_EXPORT
111
GetNOMLength
();
112
113
template
<EVersion>
114
TInt
MEDWRAPPER_EXPORT
115
GetLNOMLength
();
116
117
template
<EVersion>
118
TInt
MEDWRAPPER_EXPORT
119
GetPNOMLength
();
120
121
template
<EVersion>
122
void
MEDWRAPPER_EXPORT
123
GetVersionRelease
(
TInt
& majeur,
TInt
& mineur,
TInt
& release);
124
125
template
<EVersion>
126
MEDWRAPPER_EXPORT
127
TInt
128
GetNbConn
(
EGeometrieElement
typmai,
129
EEntiteMaillage
typent,
130
TInt
mdim);
131
132
MEDWRAPPER_EXPORT
133
TInt
134
GetNbNodes
(
EGeometrieElement
typmai);
135
136
struct
TNameInfo
;
137
typedef
SharedPtr<TNameInfo>
PNameInfo
;
138
139
struct
TMeshInfo
;
140
typedef
SharedPtr<TMeshInfo>
PMeshInfo
;
141
142
struct
TFamilyInfo
;
143
typedef
SharedPtr<TFamilyInfo>
PFamilyInfo
;
144
145
struct
TElemInfo
;
146
typedef
SharedPtr<TElemInfo>
PElemInfo
;
147
148
struct
TNodeInfo
;
149
typedef
SharedPtr<TNodeInfo>
PNodeInfo
;
150
151
struct
TPolygoneInfo
;
152
typedef
SharedPtr<TPolygoneInfo>
PPolygoneInfo
;
153
154
struct
TPolyedreInfo
;
155
typedef
SharedPtr<TPolyedreInfo>
PPolyedreInfo
;
156
157
struct
TCellInfo
;
158
typedef
SharedPtr<TCellInfo>
PCellInfo
;
159
160
struct
TBallInfo
;
161
typedef
SharedPtr<TBallInfo>
PBallInfo
;
162
163
struct
TFieldInfo
;
164
typedef
SharedPtr<TFieldInfo>
PFieldInfo
;
165
166
struct
TTimeStampInfo
;
167
typedef
SharedPtr<TTimeStampInfo>
PTimeStampInfo
;
168
169
struct
TProfileInfo
;
170
typedef
SharedPtr<TProfileInfo>
PProfileInfo
;
171
172
struct
TGaussInfo
;
173
typedef
SharedPtr<TGaussInfo>
PGaussInfo
;
174
175
class
TGrilleInfo
;
176
typedef
SharedPtr<TGrilleInfo>
PGrilleInfo
;
177
178
struct
TTimeStampValueBase
;
179
typedef
SharedPtr<TTimeStampValueBase>
PTimeStampValueBase
;
180
181
struct
TWrapper
;
182
typedef
SharedPtr<TWrapper>
PWrapper
;
183
}
184
185
186
#endif
src
MEDWrapper
Base
MED_Common.hxx
Copyright © 2007-2017 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS