X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDLoader%2FMEDFileMeshSupport.hxx;h=f3caabc16727fd9d395b36b41d5928891a4e899d;hb=844b1a4785909ad42206965838a6d0f826dfb5c1;hp=f8d136776405b4f4ba2a33e646edfa393cb7efb7;hpb=4aed19cb3f96f7072311a8006f6a5b3ae9312bc0;p=tools%2Fmedcoupling.git diff --git a/src/MEDLoader/MEDFileMeshSupport.hxx b/src/MEDLoader/MEDFileMeshSupport.hxx index f8d136776..f3caabc16 100644 --- a/src/MEDLoader/MEDFileMeshSupport.hxx +++ b/src/MEDLoader/MEDFileMeshSupport.hxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2017 CEA/DEN, EDF R&D +// Copyright (C) 2007-2019 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 @@ -23,32 +23,31 @@ #include "MEDLoaderDefines.hxx" #include "MEDFileUtilities.txx" +#include "MEDFileMesh.hxx" #include "MEDCouplingRefCountObject.hxx" namespace MEDCoupling { - class MEDFileMeshSupport : public RefCountObject, public MEDFileWritableStandAlone + class MEDFileMeshSupports : public RefCountObject, public MEDFileWritableStandAlone { public: - MEDLOADER_EXPORT static MEDFileMeshSupport *New(const std::string& fileName); - MEDLOADER_EXPORT static MEDFileMeshSupport *New(const std::string& fileName, int smid); - MEDLOADER_EXPORT static MEDFileMeshSupport *New(med_idt fid, int smid); - MEDLOADER_EXPORT static MEDFileMeshSupport *New(); + MEDLOADER_EXPORT static MEDFileMeshSupports *New(const std::string& fileName); + MEDLOADER_EXPORT static MEDFileMeshSupports *New(med_idt fid); + MEDLOADER_EXPORT static MEDFileMeshSupports *New(); + public: MEDLOADER_EXPORT std::vector getDirectChildrenWithNull() const; MEDLOADER_EXPORT std::size_t getHeapMemorySizeWithoutChildren() const; - MEDLOADER_EXPORT int getSpaceDim() const; - MEDLOADER_EXPORT void setSpaceDim(int dim); - MEDLOADER_EXPORT int getMeshDim() const; - MEDLOADER_EXPORT void setMeshDim(int dim); + MEDLOADER_EXPORT void writeLL(med_idt fid) const; + MEDLOADER_EXPORT std::vector getSupMeshNames() const; + MEDLOADER_EXPORT const MEDFileUMesh *getSupMeshWithName(const std::string& name) const; + MEDLOADER_EXPORT int getNumberOfNodesInConnOf(TypeOfField entity, const std::string& name) const; private: - void writeLL(med_idt fid) const; - MEDFileMeshSupport(med_idt fid, int smid); - MEDFileMeshSupport(); + MEDFileMeshSupports(med_idt fid); + MEDFileMeshSupports(); + ~MEDFileMeshSupports(); private: - int _space_dim; - int _mesh_dim; - std::string _description; + std::vector< MCAuto > _supports; }; }