Changeset 1971 in Sophya for trunk/SophyaPI/PIext/pihisto.cc
- Timestamp:
- Apr 30, 2002, 2:34:41 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/pihisto.cc
r1905 r1971 133 133 } 134 134 135 int 136 PIHisto::DecodeOptionString(vector<string> & opt, bool rmdecopt) 137 { 138 if (opt.size() < 1) return(0); 139 int ndec1 = PIDrawer::DecodeOptionString(opt, rmdecopt); 140 if ((opt.size() - ndec1) < 1) return(ndec1); // si tout a ete decode 141 142 vector<string> udopt; // On gardera ici les options non decodees 143 unsigned int k = 0; 144 int ndec = opt.size(); 145 for( k=0; k<opt.size(); k++ ) { 146 string opts = opt[k]; 147 if (opts == "stat") SetStats(true); 148 else if (opts == "nostat") SetStats(false); 149 else { 150 ndec--; 151 // S'il faut supprimer les options decodees 152 if (rmdecopt) udopt.push_back(opts); 153 } 154 } 155 // S'il faut supprimer les options decodees, on remplace l'argument opt 156 // par le vecteur des options non decodees. 157 if (rmdecopt) opt = udopt; 158 return(ndec+ndec1); 159 } 160 135 161 void 136 162 PIHisto::DrawStats(PIGraphicUC* g)
Note:
See TracChangeset
for help on using the changeset viewer.