Salome HOME
[Intersect2D] Keep flexibility on orientation of mesh2
[tools/medcoupling.git] / src / MEDLoader / SauvUtilities.hxx
index 107552b8f6c3b42eb1a095827fc174fef445f93a..0be627bf6e0ecc3aee3ee630d791b43279b8bcc7 100644 (file)
@@ -1,9 +1,9 @@
-// Copyright (C) 2007-2012  CEA/DEN, EDF R&D
+// Copyright (C) 2007-2021  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
 #include <string>
 #include <sstream>
 
-#define THROW_IK_EXCEPTION(text)                        \
-  {                                                     \
-    std::ostringstream oss; oss << text;                \
-    throw INTERP_KERNEL::Exception(oss.str().c_str());  \
-  }
-
 namespace SauvUtilities
 {
   INTERP_KERNEL::NormalizedCellType MEDLOADER_EXPORT gibi2medGeom( size_t gibiType );
@@ -90,7 +84,7 @@ namespace SauvUtilities
   /*!
    * \brief Base class for ASCII and XDR file readers
    */
-  class FileReader : public ParaMEDMEM::RefCountObject
+  class FileReader : public MEDCoupling::RefCountObject
   {
   public:
     FileReader(const char* fileName);
@@ -110,9 +104,10 @@ namespace SauvUtilities
     virtual double getDouble() const = 0;
     virtual std::string getName() const = 0;
   protected:
-    std::size_t getHeapMemorySize() const { return 0; }
+    std::size_t getHeapMemorySizeWithoutChildren() const { return 0; }
+    std::vector<const BigMemoryObject *> getDirectChildrenWithNull() const { return std::vector<const BigMemoryObject *>(); }
   protected:
-    std::string _fileName, _curLocale;
+    std::string _fileName;
     int _iRead, _nbToRead;
   };
 }