X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPlugins%2FMEDReader%2FIO%2FMEDTimeReq.cxx;h=19d57bf8a2bcece40e08c182f9e3a0f0e2a8b664;hb=a833b1388f958c887b2b0886fc40a8be0256e2c8;hp=e2b0d939cf63ef5eeb73beaed1612ef85cc1a12c;hpb=d170abf6cb7fa44827057ce004760d1ef45d9f2d;p=modules%2Fparavis.git diff --git a/src/Plugins/MEDReader/IO/MEDTimeReq.cxx b/src/Plugins/MEDReader/IO/MEDTimeReq.cxx index e2b0d939..19d57bf8 100644 --- a/src/Plugins/MEDReader/IO/MEDTimeReq.cxx +++ b/src/Plugins/MEDReader/IO/MEDTimeReq.cxx @@ -1,9 +1,9 @@ -// Copyright (C) 2010-2014 CEA/DEN, EDF R&D +// Copyright (C) 2010-2015 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 // License as published by the Free Software Foundation; either -// version 2.1 of the License. +// version 2.1 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -74,7 +74,7 @@ void MEDStdTimeReq::operator++() const /////////// -MEDModeTimeReq::MEDModeTimeReq(const std::vector& v):_v(v),_it(0),_sz(0) +MEDModeTimeReq::MEDModeTimeReq(const std::vector& v, const std::vector& ts):_v(v),_ts(ts),_it(0),_sz(0) { } @@ -120,7 +120,9 @@ std::string MEDModeTimeReq::buildName(const std::string& name) const oss2.width(len); oss2.fill('0'); oss2 << _it; // - oss << oss2.str() << "]"; + oss << oss2.str() << "]"; + if(_it<(int)_ts.size()) + oss << " - " << _ts[_it]; return oss.str(); }