Back to index

salome-med  6.5.0
MEDFileMesh.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 __MEDFILEMESH_HXX__
00021 #define __MEDFILEMESH_HXX__
00022 
00023 #include "MEDLoaderDefines.hxx"
00024 #include "MEDFileMeshLL.hxx"
00025 #include "MEDFileUtilities.hxx"
00026 
00027 #include <map>
00028 
00029 namespace ParaMEDMEM
00030 {
00031   class MEDLOADER_EXPORT MEDFileMesh : public RefCountObject, public MEDFileWritable
00032   {
00033   public:
00034     static MEDFileMesh *New(const char *fileName) throw(INTERP_KERNEL::Exception);
00035     static MEDFileMesh *New(const char *fileName, const char *mName, int dt=-1, int it=-1) throw(INTERP_KERNEL::Exception);
00036     virtual bool isEqual(const MEDFileMesh *other, double eps, std::string& what) const;
00037     virtual void clearNonDiscrAttributes() const;
00038     void setName(const char *name) { _name=name; }
00039     const char *getName() const { return _name.c_str(); }
00040     void setUnivName(const char *name) { _univ_name=name; }
00041     const char *getUnivName() const { return _univ_name.c_str(); }
00042     void setDescription(const char *name) { _desc_name=name; }
00043     const char *getDescription() const { return _desc_name.c_str(); }
00044     void setOrder(int order) { _order=order; }
00045     int getOrder() const { return _order; }
00046     void setIteration(int it) { _iteration=it; }
00047     int getIteration() const { return _iteration; }
00048     void setTimeValue(double time) { _time=time; }
00049     void setTime(double time, int dt, int it) { _time=time; _iteration=dt; _order=it; }
00050     double getTime(int& dt, int& it) { dt=_iteration; it=_order; return _time; }
00051     double getTimeValue() const { return _time; }
00052     void setTimeUnit(const char *unit) { _dt_unit=unit; }
00053     const char *getTimeUnit() const { return _dt_unit.c_str(); }
00054     virtual std::vector<int> getNonEmptyLevels() const = 0;
00055     virtual std::vector<int> getNonEmptyLevelsExt() const = 0;
00056     virtual void write(const char *fileName, int mode) const throw(INTERP_KERNEL::Exception);
00057     virtual void write(med_idt fid) const throw(INTERP_KERNEL::Exception);
00058     virtual int getSizeAtLevel(int meshDimRelToMaxExt) const throw(INTERP_KERNEL::Exception) = 0;
00059     virtual MEDCouplingMesh *getGenMeshAtLevel(int meshDimRelToMax, bool renum=false) const throw(INTERP_KERNEL::Exception) = 0;
00060     //
00061     bool areFamsEqual(const MEDFileMesh *other, std::string& what) const;
00062     bool areGrpsEqual(const MEDFileMesh *other, std::string& what) const;
00063     bool existsGroup(const char *groupName) const;
00064     bool existsFamily(int famId) const;
00065     bool existsFamily(const char *familyName) const;
00066     void setFamilyId(const char *familyName, int id);
00067     virtual void addFamily(const char *familyName, int id) throw(INTERP_KERNEL::Exception);
00068     virtual void createGroupOnAll(int meshDimRelToMaxExt, const char *groupName) throw(INTERP_KERNEL::Exception);
00069     virtual bool keepFamIdsOnlyOnLevs(const std::vector<int>& famIds, const std::vector<int>& levs) throw(INTERP_KERNEL::Exception);
00070     void addFamilyOnGrp(const char *grpName, const char *famName) throw(INTERP_KERNEL::Exception);
00071     std::string findOrCreateAndGiveFamilyWithId(int id, bool& created) throw(INTERP_KERNEL::Exception);
00072     void setFamilyInfo(const std::map<std::string,int>& info);
00073     void setGroupInfo(const std::map<std::string, std::vector<std::string> >&info);
00074     void copyFamGrpMapsFrom(const MEDFileMesh& other);
00075     const std::map<std::string,int>& getFamilyInfo() const { return _families; }
00076     const std::map<std::string, std::vector<std::string> >& getGroupInfo() const { return _groups; }
00077     std::vector<std::string> getFamiliesOnGroup(const char *name) const throw(INTERP_KERNEL::Exception);
00078     std::vector<std::string> getFamiliesOnGroups(const std::vector<std::string>& grps) const throw(INTERP_KERNEL::Exception);
00079     std::vector<int> getFamiliesIdsOnGroup(const char *name) const throw(INTERP_KERNEL::Exception);
00080     void setFamiliesOnGroup(const char *name, const std::vector<std::string>& fams) throw(INTERP_KERNEL::Exception);
00081     void setFamiliesIdsOnGroup(const char *name, const std::vector<int>& famIds) throw(INTERP_KERNEL::Exception);
00082     std::vector<std::string> getGroupsOnFamily(const char *name) const throw(INTERP_KERNEL::Exception);
00083     void setGroupsOnFamily(const char *famName, const std::vector<std::string>& grps) throw(INTERP_KERNEL::Exception);
00084     std::vector<std::string> getGroupsNames() const;
00085     std::vector<std::string> getFamiliesNames() const;
00086     void assignFamilyNameWithGroupName() throw(INTERP_KERNEL::Exception);
00087     void removeGroup(const char *name) throw(INTERP_KERNEL::Exception);
00088     void removeFamily(const char *name) throw(INTERP_KERNEL::Exception);
00089     void changeGroupName(const char *oldName, const char *newName) throw(INTERP_KERNEL::Exception);
00090     void changeFamilyName(const char *oldName, const char *newName) throw(INTERP_KERNEL::Exception);
00091     void changeFamilyId(int oldId, int newId) throw(INTERP_KERNEL::Exception);
00092     int getFamilyId(const char *name) const throw(INTERP_KERNEL::Exception);
00093     int getMaxFamilyId() const throw(INTERP_KERNEL::Exception);
00094     std::vector<int> getFamiliesIds(const std::vector<std::string>& famNames) const throw(INTERP_KERNEL::Exception);
00095     std::string getFamilyNameGivenId(int id) const throw(INTERP_KERNEL::Exception);
00096     virtual int getMeshDimension() const throw(INTERP_KERNEL::Exception) = 0;
00097     virtual std::string simpleRepr() const;
00098     virtual std::string advancedRepr() const = 0;
00099     //
00100     virtual void setGroupsAtLevel(int meshDimRelToMaxExt, const std::vector<const DataArrayInt *>& grps, bool renum=false) throw(INTERP_KERNEL::Exception);
00101     virtual void setFamilyFieldArr(int meshDimRelToMaxExt, DataArrayInt *famArr) throw(INTERP_KERNEL::Exception) = 0;
00102     virtual void setRenumFieldArr(int meshDimRelToMaxExt, DataArrayInt *renumArr) throw(INTERP_KERNEL::Exception) = 0;
00103     virtual const DataArrayInt *getFamilyFieldAtLevel(int meshDimRelToMaxExt) const throw(INTERP_KERNEL::Exception) = 0;
00104     virtual const DataArrayInt *getNumberFieldAtLevel(int meshDimRelToMaxExt) const throw(INTERP_KERNEL::Exception) = 0;
00105     virtual const DataArrayInt *getRevNumberFieldAtLevel(int meshDimRelToMaxExt) const throw(INTERP_KERNEL::Exception) = 0;
00106     virtual DataArrayInt *getFamiliesArr(int meshDimRelToMaxExt, const std::vector<std::string>& fams, bool renum=false) const throw(INTERP_KERNEL::Exception) = 0;
00107     virtual DataArrayInt *getGroupsArr(int meshDimRelToMaxExt, const std::vector<std::string>& grps, bool renum=false) const throw(INTERP_KERNEL::Exception);
00108     virtual DataArrayInt *getGroupArr(int meshDimRelToMaxExt, const char *grp, bool renum=false) const throw(INTERP_KERNEL::Exception);
00109     virtual DataArrayInt *getFamilyArr(int meshDimRelToMaxExt, const char *fam, bool renum=false) const throw(INTERP_KERNEL::Exception);
00110     virtual DataArrayInt *getNodeGroupArr(const char *grp, bool renum=false) const throw(INTERP_KERNEL::Exception);
00111     virtual DataArrayInt *getNodeGroupsArr(const std::vector<std::string>& grps, bool renum=false) const throw(INTERP_KERNEL::Exception);
00112     virtual DataArrayInt *getNodeFamilyArr(const char *fam, bool renum=false) const throw(INTERP_KERNEL::Exception);
00113     virtual DataArrayInt *getNodeFamiliesArr(const std::vector<std::string>& fams, bool renum=false) const throw(INTERP_KERNEL::Exception);
00114   protected:
00115     MEDFileMesh();
00116     void addFamilyOnAllGroupsHaving(const char *famName, const char *otherFamName) throw(INTERP_KERNEL::Exception);
00117     virtual void writeLL(med_idt fid) const throw(INTERP_KERNEL::Exception) = 0;
00118     void dealWithTinyInfo(const MEDCouplingMesh *m) throw(INTERP_KERNEL::Exception);
00119     virtual void synchronizeTinyInfoOnLeaves() const = 0;
00120     void getFamilyRepr(std::ostream& oss) const;
00121     virtual void appendFamilyEntries(const std::set<int>& famIds, const std::vector< std::vector<int> >& fidsOfGrps, const std::vector<std::string>& grpNames);
00122     virtual void changeFamilyIdArr(int oldId, int newId) throw(INTERP_KERNEL::Exception) = 0;
00123     static void TranslateFamilyIds(int offset, DataArrayInt *famArr, std::vector< std::vector<int> >& famIdsPerGrp);
00124     static std::string CreateNameNotIn(const std::string& nameTry, const std::vector<std::string>& namesToAvoid) throw(INTERP_KERNEL::Exception);
00125   protected:
00126     int _order;
00127     int _iteration;
00128     double _time;
00129     std::string _dt_unit;
00130     std::string _name;
00131     std::string _univ_name;
00132     std::string _desc_name;
00133   protected:
00134     std::map<std::string, std::vector<std::string> > _groups;
00135     std::map<std::string,int> _families;
00136   public:
00137     static const char DFT_FAM_NAME[];
00138   };
00139 
00140   class MEDLOADER_EXPORT MEDFileUMesh : public MEDFileMesh
00141   {
00142     friend class MEDFileMesh;
00143   public:
00144     static MEDFileUMesh *New(const char *fileName, const char *mName, int dt=-1, int it=-1) throw(INTERP_KERNEL::Exception);
00145     static MEDFileUMesh *New(const char *fileName) throw(INTERP_KERNEL::Exception);
00146     static MEDFileUMesh *New();
00147     bool isEqual(const MEDFileMesh *other, double eps, std::string& what) const;
00148     void clearNonDiscrAttributes() const;
00149     ~MEDFileUMesh();
00150     //
00151     int getMeshDimension() const throw(INTERP_KERNEL::Exception);
00152     int getSpaceDimension() const throw(INTERP_KERNEL::Exception);
00153     std::string simpleRepr() const;
00154     std::string advancedRepr() const;
00155     int getSizeAtLevel(int meshDimRelToMaxExt) const throw(INTERP_KERNEL::Exception);
00156     const DataArrayInt *getFamilyFieldAtLevel(int meshDimRelToMaxExt) const throw(INTERP_KERNEL::Exception);
00157     const DataArrayInt *getNumberFieldAtLevel(int meshDimRelToMaxExt) const throw(INTERP_KERNEL::Exception);
00158     const DataArrayInt *getRevNumberFieldAtLevel(int meshDimRelToMaxExt) const throw(INTERP_KERNEL::Exception);
00159     std::vector<int> getNonEmptyLevels() const;
00160     std::vector<int> getNonEmptyLevelsExt() const;
00161     std::vector<int> getGrpNonEmptyLevels(const char *grp) const throw(INTERP_KERNEL::Exception);
00162     std::vector<int> getGrpNonEmptyLevelsExt(const char *grp) const throw(INTERP_KERNEL::Exception);
00163     std::vector<int> getFamNonEmptyLevels(const char *fam) const throw(INTERP_KERNEL::Exception);
00164     std::vector<int> getFamNonEmptyLevelsExt(const char *fam) const throw(INTERP_KERNEL::Exception);
00165     std::vector<int> getGrpsNonEmptyLevels(const std::vector<std::string>& grps) const throw(INTERP_KERNEL::Exception);
00166     std::vector<int> getGrpsNonEmptyLevelsExt(const std::vector<std::string>& grps) const throw(INTERP_KERNEL::Exception);
00167     std::vector<int> getFamsNonEmptyLevels(const std::vector<std::string>& fams) const throw(INTERP_KERNEL::Exception);
00168     std::vector<int> getFamsNonEmptyLevelsExt(const std::vector<std::string>& fams) const throw(INTERP_KERNEL::Exception);
00169     std::vector<std::string> getGroupsOnSpecifiedLev(int meshDimRelToMaxExt) const throw(INTERP_KERNEL::Exception);
00170     DataArrayDouble *getCoords() const;
00171     MEDCouplingUMesh *getGroup(int meshDimRelToMaxExt, const char *grp, bool renum=false) const throw(INTERP_KERNEL::Exception);
00172     MEDCouplingUMesh *getGroups(int meshDimRelToMaxExt, const std::vector<std::string>& grps, bool renum=false) const throw(INTERP_KERNEL::Exception);
00173     MEDCouplingUMesh *getFamily(int meshDimRelToMaxExt, const char *fam, bool renum=false) const throw(INTERP_KERNEL::Exception);
00174     MEDCouplingUMesh *getFamilies(int meshDimRelToMaxExt, const std::vector<std::string>& fams, bool renum=false) const throw(INTERP_KERNEL::Exception);
00175     DataArrayInt *getFamiliesArr(int meshDimRelToMaxExt, const std::vector<std::string>& fams, bool renum=false) const throw(INTERP_KERNEL::Exception);
00176     MEDCouplingUMesh *getMeshAtLevel(int meshDimRelToMaxExt, bool renum=false) const throw(INTERP_KERNEL::Exception);
00177     MEDCouplingMesh *getGenMeshAtLevel(int meshDimRelToMax, bool renum=false) const throw(INTERP_KERNEL::Exception);
00178     MEDCouplingUMesh *getLevel0Mesh(bool renum=false) const throw(INTERP_KERNEL::Exception);
00179     MEDCouplingUMesh *getLevelM1Mesh(bool renum=false) const throw(INTERP_KERNEL::Exception);
00180     MEDCouplingUMesh *getLevelM2Mesh(bool renum=false) const throw(INTERP_KERNEL::Exception);
00181     MEDCouplingUMesh *getLevelM3Mesh(bool renum=false) const throw(INTERP_KERNEL::Exception);
00182     //
00183     void setFamilyNameAttachedOnId(int id, const std::string& newFamName) throw(INTERP_KERNEL::Exception);
00184     void setCoords(DataArrayDouble *coords) throw(INTERP_KERNEL::Exception);
00185     void eraseGroupsAtLevel(int meshDimRelToMaxExt) throw(INTERP_KERNEL::Exception);
00186     void setFamilyFieldArr(int meshDimRelToMaxExt, DataArrayInt *famArr) throw(INTERP_KERNEL::Exception);
00187     void setRenumFieldArr(int meshDimRelToMaxExt, DataArrayInt *renumArr) throw(INTERP_KERNEL::Exception);
00188     void addNodeGroup(const std::string& name, const std::vector<int>& ids) throw(INTERP_KERNEL::Exception);
00189     void removeMeshAtLevel(int meshDimRelToMax) throw(INTERP_KERNEL::Exception);
00190     void setMeshAtLevel(int meshDimRelToMax, MEDCouplingUMesh *m, bool newOrOld=false) throw(INTERP_KERNEL::Exception);
00191     void setMeshAtLevelGen(int meshDimRelToMax, MEDCouplingUMesh *m, bool newOrOld) throw(INTERP_KERNEL::Exception);
00192     void setGroupsFromScratch(int meshDimRelToMax, const std::vector<const MEDCouplingUMesh *>& ms) throw(INTERP_KERNEL::Exception);
00193     void setGroupsOnSetMesh(int meshDimRelToMax, const std::vector<const MEDCouplingUMesh *>& ms, bool renum) throw(INTERP_KERNEL::Exception);
00194     void optimizeFamilies() throw(INTERP_KERNEL::Exception);
00195   private:
00196     void writeLL(med_idt fid) const throw(INTERP_KERNEL::Exception);
00197     MEDFileUMesh();
00198     MEDFileUMesh(med_idt fid, const char *mName, int dt, int it) throw(INTERP_KERNEL::Exception);
00199     void loadUMeshFromFile(med_idt fid, const char *mName, int dt, int it) throw(INTERP_KERNEL::Exception);
00200     const MEDFileUMeshSplitL1 *getMeshAtLevSafe(int meshDimRelToMaxExt) const throw(INTERP_KERNEL::Exception);
00201     MEDFileUMeshSplitL1 *getMeshAtLevSafe(int meshDimRelToMaxExt) throw(INTERP_KERNEL::Exception);
00202     void checkMeshDimCoherency(int meshDim, int meshDimRelToMax) const throw(INTERP_KERNEL::Exception);
00203     DataArrayDouble *checkMultiMesh(const std::vector<const MEDCouplingUMesh *>& ms) const throw(INTERP_KERNEL::Exception);
00204     void computeRevNum() const;
00205     void synchronizeTinyInfoOnLeaves() const;
00206     void changeFamilyIdArr(int oldId, int newId) throw(INTERP_KERNEL::Exception);
00207   private:
00208     std::vector< MEDCouplingAutoRefCountObjectPtr<MEDFileUMeshSplitL1> > _ms;
00209     MEDCouplingAutoRefCountObjectPtr<DataArrayDouble> _coords;
00210     MEDCouplingAutoRefCountObjectPtr<DataArrayInt> _fam_coords;
00211     MEDCouplingAutoRefCountObjectPtr<DataArrayInt> _num_coords;
00212     mutable MEDCouplingAutoRefCountObjectPtr<DataArrayInt> _rev_num_coords;
00213   };
00214 
00215   class MEDLOADER_EXPORT MEDFileCMesh : public MEDFileMesh
00216   {
00217     friend class MEDFileMesh;
00218   public:
00219     static MEDFileCMesh *New();
00220     static MEDFileCMesh *New(const char *fileName) throw(INTERP_KERNEL::Exception);
00221     static MEDFileCMesh *New(const char *fileName, const char *mName, int dt=-1, int it=-1) throw(INTERP_KERNEL::Exception);
00222     bool isEqual(const MEDFileMesh *other, double eps, std::string& what) const;
00223     int getMeshDimension() const throw(INTERP_KERNEL::Exception);
00224     std::string simpleRepr() const;
00225     std::string advancedRepr() const;
00226     void clearNonDiscrAttributes() const;
00227     const MEDCouplingCMesh *getMesh() const;
00228     MEDCouplingMesh *getGenMeshAtLevel(int meshDimRelToMax, bool renum=false) const throw(INTERP_KERNEL::Exception);
00229     void setMesh(MEDCouplingCMesh *m) throw(INTERP_KERNEL::Exception);
00230     int getSizeAtLevel(int meshDimRelToMaxExt) const throw(INTERP_KERNEL::Exception);
00231     DataArrayInt *getFamiliesArr(int meshDimRelToMaxExt, const std::vector<std::string>& fams, bool renum=false) const throw(INTERP_KERNEL::Exception);
00232     void setFamilyFieldArr(int meshDimRelToMaxExt, DataArrayInt *famArr) throw(INTERP_KERNEL::Exception);
00233     void setRenumFieldArr(int meshDimRelToMaxExt, DataArrayInt *renumArr) throw(INTERP_KERNEL::Exception);
00234     std::vector<int> getNonEmptyLevels() const;
00235     std::vector<int> getNonEmptyLevelsExt() const;
00236     const DataArrayInt *getFamilyFieldAtLevel(int meshDimRelToMaxExt) const throw(INTERP_KERNEL::Exception);
00237     const DataArrayInt *getNumberFieldAtLevel(int meshDimRelToMaxExt) const throw(INTERP_KERNEL::Exception);
00238     const DataArrayInt *getRevNumberFieldAtLevel(int meshDimRelToMaxExt) const throw(INTERP_KERNEL::Exception);
00239   private:
00240     void writeLL(med_idt fid) const throw(INTERP_KERNEL::Exception);
00241     MEDFileCMesh();
00242     void synchronizeTinyInfoOnLeaves() const;
00243     MEDFileCMesh(med_idt fid, const char *mName, int dt, int it) throw(INTERP_KERNEL::Exception);
00244     void loadCMeshFromFile(med_idt fid, const char *mName, int dt, int it) throw(INTERP_KERNEL::Exception);
00245     void changeFamilyIdArr(int oldId, int newId) throw(INTERP_KERNEL::Exception);
00246   private:
00247     MEDCouplingAutoRefCountObjectPtr<MEDCouplingCMesh> _cmesh;
00248     MEDCouplingAutoRefCountObjectPtr<DataArrayInt> _fam_nodes;
00249     MEDCouplingAutoRefCountObjectPtr<DataArrayInt> _num_nodes;
00250     MEDCouplingAutoRefCountObjectPtr<DataArrayInt> _fam_cells;
00251     MEDCouplingAutoRefCountObjectPtr<DataArrayInt> _num_cells;
00252     mutable MEDCouplingAutoRefCountObjectPtr<DataArrayInt> _rev_num_nodes;
00253     mutable MEDCouplingAutoRefCountObjectPtr<DataArrayInt> _rev_num_cells;
00254   };
00255 
00256   class MEDLOADER_EXPORT MEDFileMeshMultiTS : public RefCountObject, public MEDFileWritable
00257   {
00258   public:
00259     static MEDFileMeshMultiTS *New();
00260     static MEDFileMeshMultiTS *New(const char *fileName) throw(INTERP_KERNEL::Exception);
00261     static MEDFileMeshMultiTS *New(const char *fileName, const char *mName) throw(INTERP_KERNEL::Exception);
00262     const char *getName() const throw(INTERP_KERNEL::Exception);
00263     MEDFileMesh *getOneTimeStep() const throw(INTERP_KERNEL::Exception);
00264     void write(med_idt fid) const throw(INTERP_KERNEL::Exception);
00265     void write(const char *fileName, int mode) const throw(INTERP_KERNEL::Exception);
00266     void setOneTimeStep(MEDFileMesh *mesh1TimeStep) throw(INTERP_KERNEL::Exception);
00267   private:
00268     void loadFromFile(const char *fileName, const char *mName) throw(INTERP_KERNEL::Exception);
00269     MEDFileMeshMultiTS();
00270     MEDFileMeshMultiTS(const char *fileName) throw(INTERP_KERNEL::Exception);
00271     MEDFileMeshMultiTS(const char *fileName, const char *mName) throw(INTERP_KERNEL::Exception);
00272   private:
00273     std::vector< MEDCouplingAutoRefCountObjectPtr<MEDFileMesh> > _mesh_one_ts;
00274   };
00275 
00276   class MEDLOADER_EXPORT MEDFileMeshes : public RefCountObject, public MEDFileWritable
00277   {
00278   public:
00279     static MEDFileMeshes *New();
00280     static MEDFileMeshes *New(const char *fileName) throw(INTERP_KERNEL::Exception);
00281     std::string simpleRepr() const;
00282     void simpleReprWithoutHeader(std::ostream& oss) const;
00283     void write(const char *fileName, int mode) const throw(INTERP_KERNEL::Exception);
00284     void write(med_idt fid) const throw(INTERP_KERNEL::Exception);
00285     int getNumberOfMeshes() const throw(INTERP_KERNEL::Exception);
00286     MEDFileMesh *getMeshAtPos(int i) const throw(INTERP_KERNEL::Exception);
00287     MEDFileMesh *getMeshWithName(const char *mname) const throw(INTERP_KERNEL::Exception);
00288     std::vector<std::string> getMeshesNames() const throw(INTERP_KERNEL::Exception);
00289     //
00290     void resize(int newSize) throw(INTERP_KERNEL::Exception);
00291     void pushMesh(MEDFileMesh *mesh) throw(INTERP_KERNEL::Exception);
00292     void setMeshAtPos(int i, MEDFileMesh *mesh) throw(INTERP_KERNEL::Exception);
00293     void destroyMeshAtPos(int i) throw(INTERP_KERNEL::Exception);
00294   private:
00295     void checkCoherency() const throw(INTERP_KERNEL::Exception);
00296     void loadFromFile(const char *fileName) throw(INTERP_KERNEL::Exception);
00297     MEDFileMeshes();
00298     MEDFileMeshes(const char *fileName) throw(INTERP_KERNEL::Exception);
00299   private:
00300     std::vector< MEDCouplingAutoRefCountObjectPtr<MEDFileMeshMultiTS> > _meshes;
00301   };
00302 }
00303 
00304 #endif