Salome HOME
CMake: using newly created macros SALOME_UPDATE_FLAG_AND_LOG_PACKAGE() and SALOME_PAC...
[modules/med.git] / src / MEDLoader / SauvWriter.hxx
index 3f935aab871975b53f7221d3c54842422fc6cdbb..d6e732c1c17b2402b15008926933fa16a1948816 100644 (file)
@@ -43,15 +43,16 @@ namespace ParaMEDMEM
   /*!
    * \brief Class to write a MEDFileData into a SAUVE format file
    */
-  class MEDLOADER_EXPORT SauvWriter : public ParaMEDMEM::RefCountObject
+  class SauvWriter : public ParaMEDMEM::RefCountObject
   {
   public:
-    static SauvWriter * New();
-    void setMEDFileDS(const MEDFileData* medData, unsigned meshIndex = 0);
-    void write(const char* fileName);
+    MEDLOADER_EXPORT static SauvWriter * New();
+    MEDLOADER_EXPORT void setMEDFileDS(const MEDFileData* medData, unsigned meshIndex = 0);
+    MEDLOADER_EXPORT void write(const char* fileName);
 
   private:
-    std::size_t getHeapMemorySize() const { return 0; }
+    std::size_t getHeapMemorySizeWithoutChildren() const;
+    std::vector<const BigMemoryObject *> getDirectChildren() const;
     /*!
      * \brief Class representing a GIBI sub-mesh (described in the pile 1 of the SAUVE file).
      * It stands for a named med sub-mesh (family, etc) and contains either cell IDs or other sub-meshes.