Changeset 379 in PSPA for Interface_Web/trunk/pspaWT/sources/controler/src/elementSnapshot.cc
- Timestamp:
- Mar 8, 2013, 4:32:54 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/sources/controler/src/elementSnapshot.cc
r373 r379 4 4 #include "mixedTools.h" 5 5 6 static int incr = 0; 7 8 elementSnapshot::elementSnapshot() : abstractElement() 6 elementSnapshot::elementSnapshot(int num) : 7 abstractElement(), 8 incr_(num) 9 9 { 10 10 setDefaultValues(); … … 28 28 label_ = defaultLabel_; 29 29 30 incr++; 31 if(incr < 10) { 32 snapshotFile_= string("cliche")+string(".00")+mixedTools::intToString(incr); 33 } else if(incr >= 10 && incr < 100) { 34 snapshotFile_= string("cliche")+string(".0")+mixedTools::intToString(incr); 30 if(incr_ < 10) { 31 snapshotFile_= string("cliche")+string(".00")+mixedTools::intToString(incr_); 32 } else if(incr_ >= 10 && incr_ < 100) { 33 snapshotFile_= string("cliche")+string(".0")+mixedTools::intToString(incr_); 35 34 } else { 36 snapshotFile_= string("cliche")+string(".")+mixedTools::intToString(incr );35 snapshotFile_= string("cliche")+string(".")+mixedTools::intToString(incr_); 37 36 } 38 37 }
Note: See TracChangeset
for help on using the changeset viewer.