| Line |   | 
|---|
| 1 | // archtoimain.cc
 | 
|---|
| 2 | // Eric Aubourg         CEA/DAPNIA/SPP   juillet 1999
 | 
|---|
| 3 | 
 | 
|---|
| 4 | #include <iostream.h>
 | 
|---|
| 5 | #include <fstream.h>
 | 
|---|
| 6 | #include <iomanip.h>
 | 
|---|
| 7 | 
 | 
|---|
| 8 | #include "archeopsfile.h"
 | 
|---|
| 9 | #include "archtoi.h"
 | 
|---|
| 10 | #include "toisvr.h"
 | 
|---|
| 11 | 
 | 
|---|
| 12 | //#include <profiler.h>
 | 
|---|
| 13 | 
 | 
|---|
| 14 | #ifdef __MWERKS__
 | 
|---|
| 15 | #include <console.h>
 | 
|---|
| 16 | #endif
 | 
|---|
| 17 | 
 | 
|---|
| 18 | using namespace std;  //introduces namespace std
 | 
|---|
| 19 | 
 | 
|---|
| 20 | int main(int argc, char** argv)
 | 
|---|
| 21 | {       
 | 
|---|
| 22 | #ifdef __MWERKS__
 | 
|---|
| 23 |     argc = ccommand(&argv);
 | 
|---|
| 24 | #endif
 | 
|---|
| 25 |     if (argc != 3) {
 | 
|---|
| 26 |       cerr << "usage: archtoi reqfile datafile" << endl;
 | 
|---|
| 27 |       return(-1);
 | 
|---|
| 28 |     }
 | 
|---|
| 29 |     
 | 
|---|
| 30 | //   ProfilerInit(collectDetailed, bestTimeBase, 10000, 200);
 | 
|---|
| 31 | 
 | 
|---|
| 32 |     
 | 
|---|
| 33 |     ArchTOI toi(argv[1]);
 | 
|---|
| 34 |     toi.run(argv[2]);
 | 
|---|
| 35 |     
 | 
|---|
| 36 | //    ProfilerDump("\pprofiler.data");
 | 
|---|
| 37 |     return(0);
 | 
|---|
| 38 | }
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.