Changeset 3572 in Sophya for trunk/SophyaPI/PIext/pisiadw.cc
- Timestamp:
- Feb 7, 2009, 10:50:34 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/pisiadw.cc
r3374 r3572 244 244 245 245 bool ok = true; 246 #ifdef SANS_EVOLPLANCK247 TRY {248 mPin = new PInPersist(flnm);249 } CATCH(merr)250 { printf("ObjMgrWind::SetFile Exception= %ld (%s) \n", (long)merr, PeidaExc(merr));251 ok = false; } ENDTRY;252 #else253 246 try { 254 247 mPin = new PInPersist(flnm); … … 258 251 ok = false; 259 252 } 260 #endif261 253 262 254 if (!ok) { mPin = NULL; dap->SetReady(); return; } 263 255 264 256 int nbtags = 0; 265 #ifdef SANS_EVOLPLANCK266 nbtags = mPin->NbTags();267 #else268 257 nbtags = mPin->NbNameTags(); 269 #endif270 258 271 259 if (nbtags < 1) { … … 282 270 objlist->SetBorderWidth(2); 283 271 284 285 #ifdef SANS_EVOLPLANCK286 for(i=0; i<mPin->NbTags(); i++) {287 key = mPin->TagKey(i, cid, ln); // $CHECK$ non-const & reference initialized to temporary, car int -> long&288 if (ln <= 0) nom = "?";289 else { strncpy(noms, mPin->TagName(i).c_str(), 31); noms[31] = '\0'; nom = noms; }290 sprintf(strg, "%s (T=%s, Key=%d)", nom, dap->ObjMgr()->GetServiceObj()->PClassIdToClassName(cid), key);291 // sprintf(strg, "%s (T=%s, Key=%d)", nom, " DataObject ?", key); Attention SANS_EVOLPLANCK292 objlist->AppendItem(strg, 5000+i);293 }294 #else295 272 string tn; 296 273 for(i=0; i<mPin->NbNameTags(); i++) { … … 298 275 objlist->AppendItem(tn.c_str(), 5000+i); 299 276 } 300 #endif301 277 302 278 }
Note:
See TracChangeset
for help on using the changeset viewer.