Ignore:
Timestamp:
Nov 1, 1999, 10:59:29 AM (26 years ago)
Author:
ansari
Message:

V2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Poubelle/archTOI.old/archtoimain.cc

    r436 r534  
    77
    88#include "archeopsfile.h"
     9
    910#include "archtoi.h"
    10 #include "toisvr.h"
     11#include "toimanager.h"
    1112
    1213//#include <profiler.h>
     
    2324    argc = ccommand(&argv);
    2425#endif
     26
     27
    2528    if (argc != 3) {
    2629      cerr << "usage: archtoi reqfile datafile" << endl;
     30      cerr << "or:    archtoi -h reqfile" << endl;
    2731      return(-1);
    2832    }
     
    3034//   ProfilerInit(collectDetailed, bestTimeBase, 10000, 200);
    3135
     36    if (argv[1] == string("-h")) {
     37      ArchTOI toi(argv[2]);
     38      TOIManager::dumpAvailTOIs(cout);
     39      exit(0);
     40    }
     41
    3242   
    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    }
    3550   
    3651//    ProfilerDump("\pprofiler.data");
    3752    return(0);
    3853}
     54
Note: See TracChangeset for help on using the changeset viewer.