Changeset 561
- Timestamp:
- 02/18/15 10:13:41 (10 years ago)
- Location:
- XIOS/trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/calendar.cpp
r550 r561 115 115 } 116 116 117 CDate& CCalendar::update(int step)117 const CDate& CCalendar::update(int step) 118 118 { 119 119 info(20) << "update step : " << step << " timestep " << this->timestep << std::endl; 120 return (this-> getCurrentDate()= this->getInitDate() + step * this->timestep);120 return (this->currentDate = this->getInitDate() + step * this->timestep); 121 121 } 122 122 … … 144 144 const CDate& CCalendar::getInitDate(void) const { return this->initDate; } 145 145 const CDate& CCalendar::getTimeOrigin(void) const { return this->timeOrigin; } 146 CDate& CCalendar::getCurrentDate(void){ return this->currentDate; }146 const CDate& CCalendar::getCurrentDate(void) const { return this->currentDate; } 147 147 148 148 //----------------------------------------------------------------- -
XIOS/trunk/src/calendar.hpp
r550 r561 57 57 58 58 /// Traitemants /// 59 CDate& update(int step);59 const CDate& update(int step); 60 60 61 61 /// Accesseurs /// … … 63 63 const CDate& getInitDate(void) const; 64 64 const CDate& getTimeOrigin(void) const; 65 CDate& getCurrentDate(void);65 const CDate& getCurrentDate(void) const; 66 66 67 67 public : -
XIOS/trunk/src/node/file.cpp
r538 r561 188 188 { 189 189 CContext* context = CContext::getCurrent() ; 190 CDate& currentDate=context->calendar->getCurrentDate() ;190 const CDate& currentDate = context->calendar->getCurrentDate() ; 191 191 if (!sync_freq.isEmpty()) 192 192 { … … 204 204 { 205 205 CContext* context = CContext::getCurrent() ; 206 CDate& currentDate=context->calendar->getCurrentDate() ;206 const CDate& currentDate = context->calendar->getCurrentDate() ; 207 207 CContextServer* server=context->server ; 208 208 … … 249 249 { 250 250 CContext* context = CContext::getCurrent() ; 251 CDate& currentDate=context->calendar->getCurrentDate() ;251 const CDate& currentDate = context->calendar->getCurrentDate() ; 252 252 if (!sync_freq.isEmpty()) 253 253 { … … 271 271 { 272 272 CContext* context = CContext::getCurrent() ; 273 CDate& currentDate=context->calendar->getCurrentDate() ;273 const CDate& currentDate = context->calendar->getCurrentDate() ; 274 274 if (!split_freq.isEmpty()) 275 275 {
Note: See TracChangeset
for help on using the changeset viewer.