1 // Copyright (C) 2010-2016 CEA/DEN, EDF R&D
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 // Author : Anthony Geay
21 #include "MEDTimeReq.hxx"
25 MEDTimeReq::~MEDTimeReq()
31 MEDStdTimeReq::~MEDStdTimeReq()
35 MEDStdTimeReq::MEDStdTimeReq(int timeReq):_time_req(timeReq)
40 * Does nothing ! It is not a bug
42 void MEDStdTimeReq::setNumberOfTS(int nbOfTS) const
46 int MEDStdTimeReq::size() const
51 int MEDStdTimeReq::getCurrent() const
57 * Does nothing ! It is not a bug
59 void MEDStdTimeReq::initIterator() const
63 std::string MEDStdTimeReq::buildName(const std::string& name) const
65 return std::string(name);
69 * Does nothing ! It is not a bug
71 void MEDStdTimeReq::operator++() const
77 MEDModeTimeReq::MEDModeTimeReq(const std::vector<bool>& v, const std::vector<double>& ts):_v(v),_ts(ts),_it(0),_sz(0)
81 MEDModeTimeReq::~MEDModeTimeReq()
85 int MEDModeTimeReq::size() const
88 for(int i=0;i<_sz;i++)
96 int MEDModeTimeReq::getCurrent() const
101 void MEDModeTimeReq::setNumberOfTS(int nbOfTS) const
106 void MEDModeTimeReq::initIterator() const
108 for(_it=0;_it<_sz;_it++)
113 std::string MEDModeTimeReq::buildName(const std::string& name) const
115 std::ostringstream oss,oss2,oss3;
119 std::size_t len(oss3.str().length());
121 oss2.fill('0'); oss2 << _it;
123 oss << oss2.str() << "]";
124 if(_it<(int)_ts.size())
125 oss << " - " << _ts[_it];
129 void MEDModeTimeReq::operator++() const