Ignore:
Timestamp:
Mar 8, 2013, 4:32:54 PM (11 years ago)
Author:
touze
Message:

ajout d'une extension de fichier pour les cliches

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Interface_Web/trunk/pspaWT/sources/controler/src/elementSnapshot.cc

    r373 r379  
    44#include "mixedTools.h"
    55
    6 static int incr = 0;
    7 
    8 elementSnapshot::elementSnapshot() : abstractElement()
     6elementSnapshot::elementSnapshot(int num) :
     7  abstractElement(),
     8  incr_(num)
    99{
    1010  setDefaultValues();
     
    2828  label_ = defaultLabel_;
    2929
    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_);
    3534  } else {
    36     snapshotFile_= string("cliche")+string(".")+mixedTools::intToString(incr);
     35    snapshotFile_= string("cliche")+string(".")+mixedTools::intToString(incr_);
    3736  }
    3837}
Note: See TracChangeset for help on using the changeset viewer.