Changeset 534 in Sophya for trunk/Poubelle/archTOI.old/archtoimain.cc
- Timestamp:
- Nov 1, 1999, 10:59:29 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Poubelle/archTOI.old/archtoimain.cc
r436 r534 7 7 8 8 #include "archeopsfile.h" 9 9 10 #include "archtoi.h" 10 #include "toi svr.h"11 #include "toimanager.h" 11 12 12 13 //#include <profiler.h> … … 23 24 argc = ccommand(&argv); 24 25 #endif 26 27 25 28 if (argc != 3) { 26 29 cerr << "usage: archtoi reqfile datafile" << endl; 30 cerr << "or: archtoi -h reqfile" << endl; 27 31 return(-1); 28 32 } … … 30 34 // ProfilerInit(collectDetailed, bestTimeBase, 10000, 200); 31 35 36 if (argv[1] == string("-h")) { 37 ArchTOI toi(argv[2]); 38 TOIManager::dumpAvailTOIs(cout); 39 exit(0); 40 } 41 32 42 33 ArchTOI toi(argv[1]); 34 toi.run(argv[2]); 43 try { 44 ArchTOI toi(argv[1]); 45 toi.run(argv[2]); 46 } catch (ArchExc exc) { 47 cerr << exc.Msg() << endl; 48 exit(-1); 49 } 35 50 36 51 // ProfilerDump("\pprofiler.data"); 37 52 return(0); 38 53 } 54
Note:
See TracChangeset
for help on using the changeset viewer.