- bool areFamsEqual(const MEDFileMesh *other, std::string& what) const;
- bool areGrpsEqual(const MEDFileMesh *other, std::string& what) const;
- bool existsGroup(const char *groupName) const;
- bool existsFamily(int famId) const;
- bool existsFamily(const char *familyName) const;
- void setFamilyId(const char *familyName, int id);
- void setFamilyIdUnique(const char *familyName, int id) throw(INTERP_KERNEL::Exception);
- virtual void addFamily(const char *familyName, int id) throw(INTERP_KERNEL::Exception);
- virtual void createGroupOnAll(int meshDimRelToMaxExt, const char *groupName) throw(INTERP_KERNEL::Exception);
- virtual bool keepFamIdsOnlyOnLevs(const std::vector<int>& famIds, const std::vector<int>& levs) throw(INTERP_KERNEL::Exception);
- void addFamilyOnGrp(const char *grpName, const char *famName) throw(INTERP_KERNEL::Exception);
- std::string findOrCreateAndGiveFamilyWithId(int id, bool& created) throw(INTERP_KERNEL::Exception);
- void setFamilyInfo(const std::map<std::string,int>& info);
- void setGroupInfo(const std::map<std::string, std::vector<std::string> >&info);
- void copyFamGrpMapsFrom(const MEDFileMesh& other);
- const std::map<std::string,int>& getFamilyInfo() const { return _families; }
- const std::map<std::string, std::vector<std::string> >& getGroupInfo() const { return _groups; }
- std::vector<std::string> getFamiliesOnGroup(const char *name) const throw(INTERP_KERNEL::Exception);
- std::vector<std::string> getFamiliesOnGroups(const std::vector<std::string>& grps) const throw(INTERP_KERNEL::Exception);
- std::vector<int> getFamiliesIdsOnGroup(const char *name) const throw(INTERP_KERNEL::Exception);
- void setFamiliesOnGroup(const char *name, const std::vector<std::string>& fams) throw(INTERP_KERNEL::Exception);
- void setFamiliesIdsOnGroup(const char *name, const std::vector<int>& famIds) throw(INTERP_KERNEL::Exception);
- std::vector<std::string> getGroupsOnFamily(const char *name) const throw(INTERP_KERNEL::Exception);
- void setGroupsOnFamily(const char *famName, const std::vector<std::string>& grps) throw(INTERP_KERNEL::Exception);
- std::vector<std::string> getGroupsNames() const;
- std::vector<std::string> getFamiliesNames() const;
- void assignFamilyNameWithGroupName() throw(INTERP_KERNEL::Exception);
- std::vector<std::string> removeEmptyGroups() throw(INTERP_KERNEL::Exception);
- void removeGroup(const char *name) throw(INTERP_KERNEL::Exception);
- void removeFamily(const char *name) throw(INTERP_KERNEL::Exception);
- std::vector<std::string> removeOrphanGroups() throw(INTERP_KERNEL::Exception);
- std::vector<std::string> removeOrphanFamilies() throw(INTERP_KERNEL::Exception);
- void changeGroupName(const char *oldName, const char *newName) throw(INTERP_KERNEL::Exception);
- void changeFamilyName(const char *oldName, const char *newName) throw(INTERP_KERNEL::Exception);
- void changeFamilyId(int oldId, int newId) throw(INTERP_KERNEL::Exception);
- void changeAllGroupsContainingFamily(const char *familyNameToChange, const std::vector<std::string>& newFamiliesNames) throw(INTERP_KERNEL::Exception);
- int getFamilyId(const char *name) const throw(INTERP_KERNEL::Exception);
- int getMaxAbsFamilyId() const throw(INTERP_KERNEL::Exception);
- int getMaxFamilyId() const throw(INTERP_KERNEL::Exception);
- int getMinFamilyId() const throw(INTERP_KERNEL::Exception);
- int getTheMaxAbsFamilyId() const throw(INTERP_KERNEL::Exception);
- int getTheMaxFamilyId() const throw(INTERP_KERNEL::Exception);
- int getTheMinFamilyId() const throw(INTERP_KERNEL::Exception);
- virtual int getMaxAbsFamilyIdInArrays() const throw(INTERP_KERNEL::Exception) = 0;
- virtual int getMaxFamilyIdInArrays() const throw(INTERP_KERNEL::Exception) = 0;
- virtual int getMinFamilyIdInArrays() const throw(INTERP_KERNEL::Exception) = 0;
- DataArrayInt *getAllFamiliesIdsReferenced() const throw(INTERP_KERNEL::Exception);
- DataArrayInt *computeAllFamilyIdsInUse() const throw(INTERP_KERNEL::Exception);
- std::vector<int> getFamiliesIds(const std::vector<std::string>& famNames) const throw(INTERP_KERNEL::Exception);
- std::string getFamilyNameGivenId(int id) const throw(INTERP_KERNEL::Exception);
- bool ensureDifferentFamIdsPerLevel() throw(INTERP_KERNEL::Exception);
- void normalizeFamIdsTrio() throw(INTERP_KERNEL::Exception);
- void normalizeFamIdsMEDFile() throw(INTERP_KERNEL::Exception);
- virtual int getMeshDimension() const throw(INTERP_KERNEL::Exception) = 0;
- virtual std::string simpleRepr() const;
- virtual std::string advancedRepr() const = 0;
+ MEDLOADER_EXPORT bool areFamsEqual(const MEDFileMesh *other, std::string& what) const;
+ MEDLOADER_EXPORT bool areGrpsEqual(const MEDFileMesh *other, std::string& what) const;
+ MEDLOADER_EXPORT bool existsGroup(const std::string& groupName) const;
+ MEDLOADER_EXPORT bool existsFamily(int famId) const;
+ MEDLOADER_EXPORT bool existsFamily(const std::string& familyName) const;
+ MEDLOADER_EXPORT void setFamilyId(const std::string& familyName, int id);
+ MEDLOADER_EXPORT void setFamilyIdUnique(const std::string& familyName, int id);
+ MEDLOADER_EXPORT virtual void addFamily(const std::string& familyName, int id);
+ MEDLOADER_EXPORT virtual void createGroupOnAll(int meshDimRelToMaxExt, const std::string& groupName);
+ MEDLOADER_EXPORT virtual bool keepFamIdsOnlyOnLevs(const std::vector<int>& famIds, const std::vector<int>& levs);
+ MEDLOADER_EXPORT void addFamilyOnGrp(const std::string& grpName, const std::string& famName);
+ MEDLOADER_EXPORT std::string findOrCreateAndGiveFamilyWithId(int id, bool& created);
+ MEDLOADER_EXPORT void setFamilyInfo(const std::map<std::string,int>& info);
+ MEDLOADER_EXPORT void setGroupInfo(const std::map<std::string, std::vector<std::string> >&info);
+ MEDLOADER_EXPORT void copyFamGrpMapsFrom(const MEDFileMesh& other);
+ MEDLOADER_EXPORT void clearGrpMap();
+ MEDLOADER_EXPORT void clearFamMap();
+ MEDLOADER_EXPORT void clearFamGrpMaps();
+ MEDLOADER_EXPORT const std::map<std::string,int>& getFamilyInfo() const { return _families; }
+ MEDLOADER_EXPORT const std::map<std::string, std::vector<std::string> >& getGroupInfo() const { return _groups; }
+ MEDLOADER_EXPORT std::vector<std::string> getFamiliesOnGroup(const std::string& name) const;
+ MEDLOADER_EXPORT std::vector<std::string> getFamiliesOnGroups(const std::vector<std::string>& grps) const;
+ MEDLOADER_EXPORT std::vector<int> getFamiliesIdsOnGroup(const std::string& name) const;
+ MEDLOADER_EXPORT void setFamiliesOnGroup(const std::string& name, const std::vector<std::string>& fams);
+ MEDLOADER_EXPORT void setFamiliesIdsOnGroup(const std::string& name, const std::vector<int>& famIds);
+ MEDLOADER_EXPORT std::vector<std::string> getGroupsOnFamily(const std::string& name) const;
+ MEDLOADER_EXPORT void setGroupsOnFamily(const std::string& famName, const std::vector<std::string>& grps);
+ MEDLOADER_EXPORT std::vector<std::string> getGroupsNames() const;
+ MEDLOADER_EXPORT std::vector<std::string> getFamiliesNames() const;
+ MEDLOADER_EXPORT std::vector<std::string> getGroupsOnSpecifiedLev(int meshDimRelToMaxExt) const;
+ MEDLOADER_EXPORT std::vector<int> getGrpNonEmptyLevelsExt(const std::string& grp) const;
+ MEDLOADER_EXPORT std::vector<int> getGrpNonEmptyLevels(const std::string& grp) const;
+ MEDLOADER_EXPORT std::vector<int> getGrpsNonEmptyLevels(const std::vector<std::string>& grps) const;
+ MEDLOADER_EXPORT std::vector<int> getGrpsNonEmptyLevelsExt(const std::vector<std::string>& grps) const;
+ MEDLOADER_EXPORT virtual std::vector<int> getFamsNonEmptyLevels(const std::vector<std::string>& fams) const = 0;
+ MEDLOADER_EXPORT virtual std::vector<int> getFamsNonEmptyLevelsExt(const std::vector<std::string>& fams) const = 0;
+ MEDLOADER_EXPORT std::vector<int> getFamNonEmptyLevels(const std::string& fam) const;
+ MEDLOADER_EXPORT std::vector<int> getFamNonEmptyLevelsExt(const std::string& fam) const;
+ MEDLOADER_EXPORT std::vector<std::string> getFamiliesNamesWithFilePointOfView() const;
+ MEDLOADER_EXPORT static std::string GetMagicFamilyStr();
+ MEDLOADER_EXPORT void assignFamilyNameWithGroupName();
+ MEDLOADER_EXPORT std::vector<std::string> removeEmptyGroups();
+ MEDLOADER_EXPORT void removeGroupAtLevel(int meshDimRelToMaxExt, const std::string& name);
+ MEDLOADER_EXPORT void removeGroup(const std::string& name);
+ MEDLOADER_EXPORT void removeFamily(const std::string& name);
+ MEDLOADER_EXPORT std::vector<std::string> removeOrphanGroups();
+ MEDLOADER_EXPORT std::vector<std::string> removeOrphanFamilies();
+ MEDLOADER_EXPORT void removeFamiliesReferedByNoGroups();
+ MEDLOADER_EXPORT void rearrangeFamilies();
+ MEDLOADER_EXPORT void zipFamilies();
+ MEDLOADER_EXPORT void checkOrphanFamilyZero() const;
+ MEDLOADER_EXPORT void changeGroupName(const std::string& oldName, const std::string& newName);
+ MEDLOADER_EXPORT void changeFamilyName(const std::string& oldName, const std::string& newName);
+ MEDLOADER_EXPORT void changeFamilyId(int oldId, int newId);
+ MEDLOADER_EXPORT void changeAllGroupsContainingFamily(const std::string& familyNameToChange, const std::vector<std::string>& newFamiliesNames);
+ MEDLOADER_EXPORT int getFamilyId(const std::string& name) const;
+ MEDLOADER_EXPORT int getMaxAbsFamilyId() const;
+ MEDLOADER_EXPORT int getMaxFamilyId() const;
+ MEDLOADER_EXPORT int getMinFamilyId() const;
+ MEDLOADER_EXPORT int getTheMaxAbsFamilyId() const;
+ MEDLOADER_EXPORT int getTheMaxFamilyId() const;
+ MEDLOADER_EXPORT int getTheMinFamilyId() const;
+ MEDLOADER_EXPORT virtual int getMaxAbsFamilyIdInArrays() const = 0;
+ MEDLOADER_EXPORT virtual int getMaxFamilyIdInArrays() const = 0;
+ MEDLOADER_EXPORT virtual int getMinFamilyIdInArrays() const = 0;
+ MEDLOADER_EXPORT DataArrayInt *getAllFamiliesIdsReferenced() const;
+ MEDLOADER_EXPORT DataArrayInt *computeAllFamilyIdsInUse() const;
+ MEDLOADER_EXPORT std::vector<int> getFamiliesIds(const std::vector<std::string>& famNames) const;
+ MEDLOADER_EXPORT std::string getFamilyNameGivenId(int id) const;
+ MEDLOADER_EXPORT bool ensureDifferentFamIdsPerLevel();
+ MEDLOADER_EXPORT void normalizeFamIdsTrio();
+ MEDLOADER_EXPORT void normalizeFamIdsMEDFile();
+ MEDLOADER_EXPORT virtual int getMeshDimension() const = 0;
+ MEDLOADER_EXPORT virtual std::string simpleRepr() const;
+ MEDLOADER_EXPORT virtual std::string advancedRepr() const = 0;