Changeset 707 for XIOS/trunk/src/node
- Timestamp:
- 09/24/15 15:55:17 (9 years ago)
- Location:
- XIOS/trunk/src/node
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/node/field.cpp
r687 r707 32 32 , refObject(), baseRefObject() 33 33 , grid(), file() 34 , written(false) 34 35 , nstep(0), nstepMax(0) 35 36 , hasOutputFile(false) … … 43 44 , refObject(), baseRefObject() 44 45 , grid(), file() 46 , written(false) 45 47 , nstep(0), nstepMax(0) 46 48 , hasOutputFile(false) … … 442 444 } 443 445 444 void CField::resetNStep( void)445 { 446 this->nstep = 0;446 void CField::resetNStep(StdSize nstep /*= 0*/) 447 { 448 this->nstep = nstep; 447 449 } 448 450 … … 457 459 { 458 460 return !this->refObject.empty(); 461 } 462 463 //---------------------------------------------------------------- 464 465 bool CField::wasWritten() const 466 { 467 return written; 468 } 469 470 void CField::setWritten() 471 { 472 written = true; 459 473 } 460 474 -
XIOS/trunk/src/node/field.hpp
r687 r707 56 56 typedef CFieldAttributes SuperClassAttribute; 57 57 58 public 58 public: 59 59 60 60 typedef CFieldAttributes RelAttributes; … … 80 80 func::CFunctor::ETimeType getOperationTimeType() const; 81 81 82 public : 83 82 public: 84 83 StdSize getNStep(void) const; 85 84 … … 91 90 void setRelFile(CFile* _file); 92 91 void incrementNStep(void); 93 void resetNStep( );92 void resetNStep(StdSize nstep = 0); 94 93 void resetNStepMax(); 95 94 96 95 std::map<int, StdSize> getGridDataSize(); 97 96 98 public 97 public: 99 98 bool isActive(void) const; 100 99 bool hasOutputFile; 100 101 bool wasWritten() const; 102 void setWritten(); 101 103 102 104 bool getUseCompressedOutput() const; … … 170 172 const std::pair<StdString, StdString>& getRefDomainAxisIds(); 171 173 172 public 174 public: 173 175 /// Propriétés privées /// 174 176 CVariableGroup* vVariableGroup; … … 179 181 CDuration freq_operation_srv, freq_write_srv; 180 182 183 bool written; //<! Was the field written at least once 181 184 StdSize nstep, nstepMax; 182 185 bool isEOF;
Note: See TracChangeset
for help on using the changeset viewer.