Changeset 5564 for trunk/MagicSoft/Mars/callisto.cc
- Timestamp:
- 12/06/04 14:28:05 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/callisto.cc
r5557 r5564 4 4 #include <TGClient.h> 5 5 #include <TApplication.h> 6 #include <TObjectTable.h> 6 7 7 8 #include "MLog.h" … … 52 53 gLog << " Options:" << endl; 53 54 gLog.Usage(); 54 gLog << " --debug-env Debug setting resources from file" << endl << endl; 55 gLog << " --debug-env Debug setting resources from file" << endl; 56 gLog << " --debug-mem Debug memory usage" << endl << endl; 55 57 gLog << endl; 56 58 gLog << " -q Quit when job is finished" << endl; … … 116 118 //const Bool_t kPrintOnly = arg.HasOnlyAndRemove("--print-only"); 117 119 const Bool_t kDebugEnv = arg.HasOnlyAndRemove("--debug-env"); 120 const Bool_t kDebugMem = arg.HasOnlyAndRemove("--debug-mem"); 118 121 119 122 const Bool_t kQuit = arg.HasOnlyAndRemove("-q"); … … 194 197 return -1; 195 198 } 199 200 if (kDebugMem) 201 TObject::SetObjectStat(kTRUE); 196 202 197 203 // … … 454 460 455 461 if (kBatch || kQuit) 456 {457 462 delete d; 458 return 0; 459 } 460 461 // From now on each 'Close' means: Terminate the application 462 d->SetBit(MStatusDisplay::kExitLoopOnClose); 463 464 // Wait until the user decides to exit the application 465 app.Run(kFALSE); 463 else 464 { 465 // From now on each 'Close' means: Terminate the application 466 d->SetBit(MStatusDisplay::kExitLoopOnClose); 467 468 // Wait until the user decides to exit the application 469 app.Run(kFALSE); 470 } 471 472 if (TObject::GetObjectStat()) 473 { 474 TObject::SetObjectStat(kFALSE); 475 gObjectTable->Print(); 476 } 477 466 478 return 0; 467 479 } 480
Note:
See TracChangeset
for help on using the changeset viewer.