-// 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 );
/*!
* \brief Base class for ASCII and XDR file readers
*/
- class FileReader : public ParaMEDMEM::RefCountObject
+ class FileReader : public MEDCoupling::RefCountObject
{
public:
FileReader(const char* fileName);
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;
};
}