X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDLoader%2FMEDFileMeshLL.hxx;h=f2d16704ba89be396756657627b9b86cc34dca64;hb=329bd9dce4c73fa5b1197ec7eefea4befafd51e9;hp=07306af54b851066f0e1e221122cca5d89889f8e;hpb=887d0e1efce4f46f68d2596dcd801f02f5c1f99e;p=tools%2Fmedcoupling.git diff --git a/src/MEDLoader/MEDFileMeshLL.hxx b/src/MEDLoader/MEDFileMeshLL.hxx index 07306af54..f2d16704b 100644 --- a/src/MEDLoader/MEDFileMeshLL.hxx +++ b/src/MEDLoader/MEDFileMeshLL.hxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2012 CEA/DEN, EDF R&D +// Copyright (C) 2007-2013 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 @@ -42,6 +42,7 @@ namespace ParaMEDMEM std::size_t getHeapMemorySize() const { return 0; } const char *getName() const { return _name.getReprForWrite(); } const char *getDescription() const { return _description.getReprForWrite(); } + const char *getUnivName() const { return _univ_name.getReprForWrite(); } const char *getTimeUnit() const { return _dt_unit.getReprForWrite(); } int getIteration() const { return _iteration; } int getOrder() const { return _order; } @@ -54,6 +55,7 @@ namespace ParaMEDMEM protected: MEDFileString _name; MEDFileString _description; + MEDFileString _univ_name; MEDFileString _dt_unit; int _iteration; int _order; @@ -72,10 +74,12 @@ namespace ParaMEDMEM const std::vector< MEDCouplingAutoRefCountObjectPtr >& getLev(int levId) const { return _per_type_mesh[levId]; } bool isFamDefinedOnLev(int levId) const; bool isNumDefinedOnLev(int levId) const; + bool isNamesDefinedOnLev(int levId) const; MEDCouplingAutoRefCountObjectPtr getCoords() const { return _coords; } MEDCouplingAutoRefCountObjectPtr getCoordsFamily() const { return _fam_coords; } MEDCouplingAutoRefCountObjectPtr getCoordsNum() const { return _num_coords; } - static void WriteCoords(med_idt fid, const char *mname, int dt, int it, double time, const DataArrayDouble *coords, const DataArrayInt *famCoords, const DataArrayInt *numCoords); + MEDCouplingAutoRefCountObjectPtr getCoordsName() const { return _name_coords; } + static void WriteCoords(med_idt fid, const char *mname, int dt, int it, double time, const DataArrayDouble *coords, const DataArrayInt *famCoords, const DataArrayInt *numCoords, const DataArrayAsciiChar *nameCoords); private: void sortTypes(); private: @@ -83,6 +87,7 @@ namespace ParaMEDMEM MEDCouplingAutoRefCountObjectPtr _coords; MEDCouplingAutoRefCountObjectPtr _fam_coords; MEDCouplingAutoRefCountObjectPtr _num_coords; + MEDCouplingAutoRefCountObjectPtr _name_coords; }; class MEDFileStrMeshL2 : public MEDFileMeshL2 @@ -153,6 +158,7 @@ namespace ParaMEDMEM DataArrayInt *getOrCreateAndGetFamilyField() throw(INTERP_KERNEL::Exception); const DataArrayInt *getFamilyField() const; const DataArrayInt *getNumberField() const; + const DataArrayAsciiChar *getNameField() const; const DataArrayInt *getRevNumberField() const; void eraseFamilyField(); void setGroupsFromScratch(const std::vector& ms, std::map& familyIds, @@ -161,6 +167,7 @@ namespace ParaMEDMEM // void setFamilyArr(DataArrayInt *famArr); void setRenumArr(DataArrayInt *renumArr); + void setNameArr(DataArrayAsciiChar *nameArr); void changeFamilyIdArr(int oldId, int newId) throw(INTERP_KERNEL::Exception); // void renumberNodesInConn(const int *newNodeNumbersO2N) throw(INTERP_KERNEL::Exception); @@ -179,6 +186,7 @@ namespace ParaMEDMEM MEDCouplingAutoRefCountObjectPtr _m_by_types; MEDCouplingAutoRefCountObjectPtr _fam; MEDCouplingAutoRefCountObjectPtr _num; + MEDCouplingAutoRefCountObjectPtr _names; mutable MEDCouplingAutoRefCountObjectPtr _rev_num; MEDFileUMeshPermCompute _m; };