Salome HOME
Just do it
[tools/medcoupling.git] / src / MEDLoader / MEDFileMeshSupport.hxx
index f8d136776405b4f4ba2a33e646edfa393cb7efb7..8e8e38e48203bc7b012eccdf2a40459e1f38d347 100644 (file)
 
 #include "MEDLoaderDefines.hxx"
 #include "MEDFileUtilities.txx"
+#include "MEDFileMesh.hxx"
 
 #include "MEDCouplingRefCountObject.hxx"
 
 namespace MEDCoupling
 {
-  class MEDFileMeshSupport : public RefCountObject, public MEDFileWritableStandAlone
+  class MEDFileMeshSupports : public RefCountObject, public MEDFileWritableStandAlone
   {
   public:
-    MEDLOADER_EXPORT static MEDFileMeshSupport *New(const std::string& fileName);
-    MEDLOADER_EXPORT static MEDFileMeshSupport *New(const std::string& fileName, int smid);
-    MEDLOADER_EXPORT static MEDFileMeshSupport *New(med_idt fid, int smid);
-    MEDLOADER_EXPORT static MEDFileMeshSupport *New();
-    MEDLOADER_EXPORT std::vector<const BigMemoryObject *> getDirectChildrenWithNull() const;
-    MEDLOADER_EXPORT std::size_t getHeapMemorySizeWithoutChildren() const;
-    MEDLOADER_EXPORT int getSpaceDim() const;
-    MEDLOADER_EXPORT void setSpaceDim(int dim);
-    MEDLOADER_EXPORT int getMeshDim() const;
-    MEDLOADER_EXPORT void setMeshDim(int dim);
-  private:
+    MEDLOADER_EXPORT static MEDFileMeshSupports *New(const std::string& fileName);
+    MEDLOADER_EXPORT static MEDFileMeshSupports *New(med_idt fid);
+    MEDLOADER_EXPORT static MEDFileMeshSupports *New();
+  public:
+    std::vector<const BigMemoryObject *> getDirectChildrenWithNull() const;
+    std::size_t getHeapMemorySizeWithoutChildren() const;
     void writeLL(med_idt fid) const;
-    MEDFileMeshSupport(med_idt fid, int smid);
-    MEDFileMeshSupport();
+    std::vector<std::string> getSupMeshNames() const;
+    const MEDFileUMesh *getSupMeshWithName(const std::string& name) const;
+    int getNumberOfNodesInConnOf(TypeOfField entity, const std::string& name) const;
+  private:
+    MEDFileMeshSupports(med_idt fid);
+    MEDFileMeshSupports();
+    ~MEDFileMeshSupports();
   private:
-    int _space_dim;
-    int _mesh_dim;
-    std::string _description;
+    std::vector< MCAuto<MEDFileUMesh> > _supports;
   };
 }