Salome HOME
Debugging before generation of classic fields/meshes from structure elements...
[tools/medcoupling.git] / src / MEDLoader / MEDFileStructureElement.hxx
index 766c1129f8a3c22ac8fabd95095b43b372fe43a5..083ab5aefa3a6b355d2472c41f1c7f2629d27763 100644 (file)
@@ -35,9 +35,11 @@ namespace MEDCoupling
   
   class MEDFileSEHolder
   {
+  public:
+    std::string getModelName() const;
+    std::string getName() const;
   protected:
     MEDFileSEHolder(MEDFileStructureElement *father):_father(father) { }
-    std::string getModelName() const;
     void setName(const std::string& name);
     std::size_t getHeapMemorySizeLoc() const;
   private:
@@ -71,6 +73,8 @@ class MEDFileSEConstAtt : public RefCountObject, public MEDFileWritableStandAlon
     std::vector<const BigMemoryObject *> getDirectChildrenWithNull() const;
     std::size_t getHeapMemorySizeWithoutChildren() const;
     void writeLL(med_idt fid) const;
+    int getNbOfComponents() const { return _nb_compo; }
+    MCAuto<DataArray> getGenerator() const { return _gen; }
   private:
     MEDFileSEVarAtt(med_idt fid, MEDFileStructureElement *father, int idVarAtt);
   private:
@@ -83,6 +87,11 @@ class MEDFileSEConstAtt : public RefCountObject, public MEDFileWritableStandAlon
   public:
     MEDLOADER_EXPORT static MEDFileStructureElement *New(med_idt fid, int idSE, const MEDFileMeshSupports *ms);
     MEDLOADER_EXPORT std::string getName() const;
+    MEDLOADER_EXPORT int getDynGT() const;
+    MEDLOADER_EXPORT TypeOfField getEntity() const;
+    MEDLOADER_EXPORT std::string getMeshName() const;
+    MEDLOADER_EXPORT std::vector<std::string> getVarAtts() const;
+    MEDLOADER_EXPORT const MEDFileSEVarAtt *getVarAtt(const std::string& varName) const;
   public:
     std::vector<const BigMemoryObject *> getDirectChildrenWithNull() const;
     std::size_t getHeapMemorySizeWithoutChildren() const;
@@ -97,6 +106,7 @@ class MEDFileSEConstAtt : public RefCountObject, public MEDFileWritableStandAlon
     std::string _name;
     std::string _sup_mesh_name;
     INTERP_KERNEL::NormalizedCellType _geo_type;
+    TypeOfField _tof;
     int _dim;
     std::vector< MCAuto<MEDFileSEConstAtt> > _cst_att;
     std::vector< MCAuto<MEDFileSEVarAtt> > _var_att;
@@ -105,8 +115,16 @@ class MEDFileSEConstAtt : public RefCountObject, public MEDFileWritableStandAlon
   class MEDFileStructureElements : public RefCountObject, public MEDFileWritableStandAlone
   {
   public:
+    MEDLOADER_EXPORT static MEDFileStructureElements *New(const std::string& fileName, const MEDFileMeshSupports *ms);
     MEDLOADER_EXPORT static MEDFileStructureElements *New(med_idt fid, const MEDFileMeshSupports *ms);
     MEDLOADER_EXPORT static MEDFileStructureElements *New();
+    MEDLOADER_EXPORT int getNumberOf() const;
+    MEDLOADER_EXPORT std::vector<int> getDynGTAvail() const;
+    MEDLOADER_EXPORT const MEDFileStructureElement *getWithGT(int idGT) const;
+    MEDLOADER_EXPORT int getNumberOfNodesPerSE(const std::string& seName) const;
+    MEDLOADER_EXPORT const MEDFileStructureElement *getSEWithName(const std::string& seName) const;
+    MEDLOADER_EXPORT std::vector<std::string> getVarAttsOf(const std::string& seName) const;
+    MEDLOADER_EXPORT const MEDFileSEVarAtt *getVarAttOf(const std::string &seName, const std::string& varName) const;
   public:
     std::vector<const BigMemoryObject *> getDirectChildrenWithNull() const;
     std::size_t getHeapMemorySizeWithoutChildren() const;
@@ -117,6 +135,7 @@ class MEDFileSEConstAtt : public RefCountObject, public MEDFileWritableStandAlon
     ~MEDFileStructureElements();
   private:
     std::vector< MCAuto<MEDFileStructureElement> > _elems;
+    MCConstAuto<MEDFileMeshSupports> _sup;
   };
 }