X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDLoader%2FMEDFileEntities.hxx;h=b9ac6350fdc053e49abeef201315f154fa32abf2;hb=1b746b38f3cdeae6654a9501f37fde5e56e59288;hp=c2a0bf99dc4ac6374bf73371e32d6f7af4d70f6b;hpb=ed70213dcec0c84ce2853088db411dc63b100f40;p=tools%2Fmedcoupling.git diff --git a/src/MEDLoader/MEDFileEntities.hxx b/src/MEDLoader/MEDFileEntities.hxx index c2a0bf99d..b9ac6350f 100644 --- a/src/MEDLoader/MEDFileEntities.hxx +++ b/src/MEDLoader/MEDFileEntities.hxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2017 CEA/DEN, EDF R&D +// Copyright (C) 2007-2024 CEA, EDF // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -30,42 +30,47 @@ namespace MEDCoupling { - class MEDFileEntities + class MEDLOADER_EXPORT MEDFileEntities { public: static MEDFileEntities *BuildFrom(const std::vector< std::pair > *entities); static MEDFileEntities *BuildFrom(const MEDFileStructureElements& se); virtual std::vector getDynGTAvail() const = 0; virtual bool areAllStaticTypesPresent() const = 0; + virtual bool areAllStaticPresentAndNoDyn() const = 0; virtual ~MEDFileEntities(); }; - class MEDFileStaticEntities : public MEDFileEntities + class MEDLOADER_EXPORT MEDFileStaticEntities : public MEDFileEntities { public: MEDFileStaticEntities(const std::vector< std::pair >& entities):_entities(entities) { } const std::vector< std::pair >& getEntries() const { return _entities; } std::vector getDynGTAvail() const; bool areAllStaticTypesPresent() const; + bool areAllStaticPresentAndNoDyn() const override; private: std::vector< std::pair > _entities; }; - class MEDFileAllStaticEntites : public MEDFileEntities + class MEDLOADER_EXPORT MEDFileAllStaticEntites : public MEDFileEntities { public: MEDFileAllStaticEntites() { } std::vector getDynGTAvail() const; bool areAllStaticTypesPresent() const; + bool areAllStaticPresentAndNoDyn() const override; }; - class MEDFileAllStaticEntitiesPlusDyn : public MEDFileEntities + class MEDLOADER_EXPORT MEDFileAllStaticEntitiesPlusDyn : public MEDFileEntities { public: MEDFileAllStaticEntitiesPlusDyn(const MEDFileStructureElements *se); std::vector getDynGTAvail() const; bool areAllStaticTypesPresent() const; + bool areAllStaticPresentAndNoDyn() const override; const MEDFileStructureElement *getWithGT(int idGT) const; + const MEDFileUMesh *getSupMeshWithName(const std::string& name) const; private: MCConstAuto _se; };