source: Sophya/trunk/Poubelle/archTOI.old/archtoimain.cc@ 555

Last change on this file since 555 was 555, checked in by ansari, 26 years ago

portage cxx en cours

File size: 982 bytes
RevLine 
[350]1// archtoimain.cc
2// Eric Aubourg CEA/DAPNIA/SPP juillet 1999
3
[342]4#include <iostream.h>
5#include <fstream.h>
6#include <iomanip.h>
7
8#include "archeopsfile.h"
[534]9
[342]10#include "archtoi.h"
[534]11#include "toimanager.h"
[342]12
[436]13//#include <profiler.h>
[342]14
15#ifdef __MWERKS__
16#include <console.h>
17#endif
18
19using namespace std; //introduces namespace std
20
21int main(int argc, char** argv)
22{
23#ifdef __MWERKS__
24 argc = ccommand(&argv);
25#endif
[534]26
27
[342]28 if (argc != 3) {
29 cerr << "usage: archtoi reqfile datafile" << endl;
[534]30 cerr << "or: archtoi -h reqfile" << endl;
[342]31 return(-1);
32 }
[363]33
[555]34// ProfilerInit(collectDetailed, bestTimeBase, 10000, 200);
[436]35
[534]36 if (argv[1] == string("-h")) {
37 ArchTOI toi(argv[2]);
38 TOIManager::dumpAvailTOIs(cout);
39 exit(0);
40 }
41
[436]42
[534]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 }
[436]50
51// ProfilerDump("\pprofiler.data");
[342]52 return(0);
53}
[534]54
Note: See TracBrowser for help on using the repository browser.