| Last change
 on this file since 3082 was             350, checked in by ansari, 26 years ago | 
        
          | 
Gestion TRANGE, MJD0, PERECH....
 | 
        
          | File size:
            600 bytes | 
      
      
| Line |  | 
|---|
| 1 | // archtoidump.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 | #ifdef __MWERKS__ | 
|---|
| 13 | #include <console.h> | 
|---|
| 14 | #endif | 
|---|
| 15 |  | 
|---|
| 16 | using namespace std;  //introduces namespace std | 
|---|
| 17 |  | 
|---|
| 18 | int main(int argc, char** argv) | 
|---|
| 19 | { | 
|---|
| 20 | #ifdef __MWERKS__ | 
|---|
| 21 | argc = ccommand(&argv); | 
|---|
| 22 | #endif | 
|---|
| 23 | if (argc != 2) { | 
|---|
| 24 | cerr << "usage: archtoidump file" << endl; | 
|---|
| 25 | return(-1); | 
|---|
| 26 | } | 
|---|
| 27 | ArcheopsFile file(argv[1]); | 
|---|
| 28 | while (file.nextBlock()) { | 
|---|
| 29 | cout << file.blockKdName() << "\n"; | 
|---|
| 30 | } | 
|---|
| 31 | } | 
|---|
| 32 |  | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.