- 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);
- void removeGroup(const char *name) throw(INTERP_KERNEL::Exception);
- void removeFamily(const char *name) 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);
- int getFamilyId(const char *name) const throw(INTERP_KERNEL::Exception);
- int getMaxFamilyId() const throw(INTERP_KERNEL::Exception);
- int getMinFamilyId() const throw(INTERP_KERNEL::Exception);
- DataArrayInt *getAllFamiliesIdsReferenced() 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 char *groupName) const;
+ MEDLOADER_EXPORT bool existsFamily(int famId) const;
+ MEDLOADER_EXPORT bool existsFamily(const char *familyName) const;
+ MEDLOADER_EXPORT void setFamilyId(const char *familyName, int id);
+ MEDLOADER_EXPORT void setFamilyIdUnique(const char *familyName, int id);
+ MEDLOADER_EXPORT virtual void addFamily(const char *familyName, int id);
+ MEDLOADER_EXPORT virtual void createGroupOnAll(int meshDimRelToMaxExt, const char *groupName);
+ MEDLOADER_EXPORT virtual bool keepFamIdsOnlyOnLevs(const std::vector<int>& famIds, const std::vector<int>& levs);
+ MEDLOADER_EXPORT void addFamilyOnGrp(const char *grpName, const char *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 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 char *name) const;
+ MEDLOADER_EXPORT std::vector<std::string> getFamiliesOnGroups(const std::vector<std::string>& grps) const;
+ MEDLOADER_EXPORT std::vector<int> getFamiliesIdsOnGroup(const char *name) const;
+ MEDLOADER_EXPORT void setFamiliesOnGroup(const char *name, const std::vector<std::string>& fams);
+ MEDLOADER_EXPORT void setFamiliesIdsOnGroup(const char *name, const std::vector<int>& famIds);
+ MEDLOADER_EXPORT std::vector<std::string> getGroupsOnFamily(const char *name) const;
+ MEDLOADER_EXPORT void setGroupsOnFamily(const char *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 void assignFamilyNameWithGroupName();
+ MEDLOADER_EXPORT std::vector<std::string> removeEmptyGroups();
+ MEDLOADER_EXPORT void removeGroup(const char *name);
+ MEDLOADER_EXPORT void removeFamily(const char *name);
+ MEDLOADER_EXPORT std::vector<std::string> removeOrphanGroups();
+ MEDLOADER_EXPORT std::vector<std::string> removeOrphanFamilies();
+ MEDLOADER_EXPORT void changeGroupName(const char *oldName, const char *newName);
+ MEDLOADER_EXPORT void changeFamilyName(const char *oldName, const char *newName);
+ MEDLOADER_EXPORT void changeFamilyId(int oldId, int newId);
+ MEDLOADER_EXPORT void changeAllGroupsContainingFamily(const char *familyNameToChange, const std::vector<std::string>& newFamiliesNames);
+ MEDLOADER_EXPORT int getFamilyId(const char *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;