3 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
29 #ifndef MED_V2_1_Wrapper_HeaderFile
30 #define MED_V2_1_Wrapper_HeaderFile
33 #if defined MEDWRAPPER_V2_1_EXPORTS
35 #define MED_V21_WRAPPER_EXPORT __declspec( dllexport )
37 #define MED_V21_WRAPPER_EXPORT
41 #define MED_V21_WRAPPER_EXPORT __declspec( dllimport )
43 #define MED_V21_WRAPPER_EXPORT
47 #define MED_V21_WRAPPER_EXPORT
50 #include "MED_TWrapper.hxx"
55 TInt MED_V21_WRAPPER_EXPORT
56 GetDESCLength<eV2_1>();
59 TInt MED_V21_WRAPPER_EXPORT
60 GetIDENTLength<eV2_1>();
63 TInt MED_V21_WRAPPER_EXPORT
64 GetNOMLength<eV2_1>();
67 TInt MED_V21_WRAPPER_EXPORT
68 GetLNOMLength<eV2_1>();
71 TInt MED_V21_WRAPPER_EXPORT
72 GetPNOMLength<eV2_1>();
75 void MED_V21_WRAPPER_EXPORT
76 GetVersionRelease<eV2_1>(TInt& majeur, TInt& mineur, TInt& release);
79 TInt MED_V21_WRAPPER_EXPORT
80 GetNbConn<eV2_1>(EGeometrieElement typmai,
81 EEntiteMaillage typent,
86 //----------------------------------------------------------------------------
88 typedef boost::shared_ptr<TFile> PFile;
90 typedef enum {eLECT, eECRI, eREMP} EModeAcces;
92 //----------------------------------------------------------------------------
93 class MED_V21_WRAPPER_EXPORT TVWrapper: public MED::TTWrapper<eV2_1>
96 TVWrapper(const TVWrapper&);
97 TVWrapper& operator=(const TVWrapper&);
100 TVWrapper(const std::string& theFileName);
103 //----------------------------------------------------------------------------
106 GetNbMeshes(TErr* theErr = NULL);
110 GetMeshInfo(TInt theMeshId, MED::TMeshInfo&,
111 TErr* theErr = NULL);
115 SetMeshInfo(const MED::TMeshInfo& theInfo,
116 TErr* theErr = NULL);
119 SetMeshInfo(const MED::TMeshInfo& theInfo,
121 TErr* theErr = NULL);
124 //----------------------------------------------------------------------------
127 GetNbFamilies(const MED::TMeshInfo& theMeshInfo,
128 TErr* theErr = NULL);
131 GetNbFamAttr(TInt theFamId,
132 const MED::TMeshInfo& theInfo,
133 TErr* theErr = NULL);
136 GetNbFamGroup(TInt theFamId,
137 const MED::TMeshInfo& theInfo,
138 TErr* theErr = NULL);
142 GetFamilyInfo(TInt theFamId,
143 MED::TFamilyInfo& theInfo,
144 TErr* theErr = NULL);
148 SetFamilyInfo(const MED::TFamilyInfo& theInfo,
149 TErr* theErr = NULL);
152 SetFamilyInfo(const MED::TFamilyInfo& theInfo,
154 TErr* theErr = NULL);
157 //----------------------------------------------------------------------------
160 GetNbNodes(const MED::TMeshInfo& theMeshInfo,
161 TErr* theErr = NULL);
165 GetNodeInfo(MED::TNodeInfo& theInfo,
166 TErr* theErr = NULL);
170 SetNodeInfo(const MED::TNodeInfo& theInfo,
171 TErr* theErr = NULL);
174 SetNodeInfo(const MED::TNodeInfo& theInfo,
176 TErr* theErr = NULL);
179 //----------------------------------------------------------------------------
182 GetEntityInfo(const MED::TMeshInfo& theMeshInfo,
183 EConnectivite theConn = eNOD,
184 TErr* theErr = NULL);
188 GetNbCells(const MED::TMeshInfo& theMeshInfo,
191 EConnectivite theConn = eNOD,
192 TErr* theErr = NULL);
196 GetCellInfo(MED::TCellInfo& theInfo,
197 TErr* theErr = NULL);
201 SetCellInfo(const MED::TCellInfo& theInfo,
202 TErr* theErr = NULL);
205 SetCellInfo(const MED::TCellInfo& theInfo,
207 TErr* theErr = NULL);
210 //----------------------------------------------------------------------------
213 GetNbFields(TErr* theErr = NULL);
217 GetNbComp(TInt theFieldId,
218 TErr* theErr = NULL);
222 GetFieldInfo(TInt theFieldId,
223 MED::TFieldInfo& theInfo,
224 TErr* theErr = NULL);
228 SetFieldInfo(const MED::TFieldInfo& theInfo,
229 TErr* theErr = NULL);
232 SetFieldInfo(const MED::TFieldInfo& theInfo,
234 TErr* theErr = NULL);
237 //----------------------------------------------------------------------------
240 GetNbProfiles(TErr* theErr = NULL);
244 GetProfilePreInfo(TInt theId,
245 TErr* theErr = NULL);
249 GetProfileInfo(TInt theId,
250 TProfileInfo& theInfo,
251 TErr* theErr = NULL);
255 SetProfileInfo(const TProfileInfo& theInfo,
256 TErr* theErr = NULL);
259 SetProfileInfo(const TProfileInfo& theInfo,
261 TErr* theErr = NULL);
263 //----------------------------------------------------------------------------
266 GetNbTimeStamps(const MED::TFieldInfo& theInfo,
267 const MED::TEntityInfo& theEntityInfo,
268 EEntiteMaillage& theEntity,
269 TGeom2Size& theGeom2Size,
270 TErr* theErr = NULL);
274 GetTimeStampInfo(TInt theTimeStampId,
275 MED::TTimeStampInfo& theInfo,
276 TErr* theErr = NULL);
280 GetTimeStampValue(const PTimeStampValueBase& theTimeStampValue,
281 const TMKey2Profile& theMKey2Profile,
282 const TKey2Gauss& theKey2Gauss,
283 TErr* theErr = NULL);
287 SetTimeStampValue(const PTimeStampValueBase& theTimeStampValue,
288 TErr* theErr = NULL);
291 SetTimeStampValue(const PTimeStampValueBase& theTimeStampValue,
293 TErr* theErr = NULL);