-// Copyright (C) 2007-2013 CEA/DEN, EDF R&D
+// Copyright (C) 2007-2016 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 "MEDCouplingRefCountObject.hxx"
#include "NormalizedUnstructuredMesh.hxx"
#include "SauvUtilities.hxx"
-#include "MEDCouplingAutoRefCountObjectPtr.hxx"
+#include "MCAuto.hxx"
#include <vector>
#include <string>
#include <map>
-namespace ParaMEDMEM
+namespace MEDCoupling
{
class MEDFileData;
class MEDFileMesh;
/*!
* \brief Class to write a MEDFileData into a SAUVE format file
*/
- class SauvWriter : public ParaMEDMEM::RefCountObject
+ class SauvWriter : public MEDCoupling::RefCountObject
{
public:
MEDLOADER_EXPORT static SauvWriter *New();
private:
SauvWriter();
std::size_t getHeapMemorySizeWithoutChildren() const;
- std::vector<const BigMemoryObject *> getDirectChildren() const;
+ std::vector<const BigMemoryObject *> getDirectChildrenWithNull() 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.
private:
- MEDCouplingAutoRefCountObjectPtr< MEDFileMesh > _fileMesh;
- std::vector< MEDCouplingAutoRefCountObjectPtr< MEDFileFieldMultiTS > > _nodeFields;
- std::vector< MEDCouplingAutoRefCountObjectPtr< MEDFileFieldMultiTS > > _cellFields;
+ MCAuto< MEDFileMesh > _fileMesh;
+ std::vector< MCAuto< MEDFileFieldMultiTS > > _nodeFields;
+ std::vector< MCAuto< MEDFileFieldMultiTS > > _cellFields;
std::vector<SubMesh> _subs;
std::map< int, SubMesh* > _famIDs2Sub;