#include "IRawFile/RawFileExceptions.h"
#include "RawFile/EvtIdxHandler.h"
#include "RawFile/RawFileReader.h"
#include "RawFile/RawFileTools.h"
#include <cstdlib>
#include <iostream>
Go to the source code of this file.
|
| int | main (int argc, char *argv[]) |
◆ main()
| int main |
( |
int | argc, |
|
|
char * | argv[] ) |
Definition at line 10 of file make_idx.cxx.
10 {
11 if ( argc != 2 )
12 {
13 cout << "Usage: " << argv[0] << " datafile" << endl;
14 cout << "***********************************" << endl
15 << "** NEW: wildcard is supported **" << endl
16 << "***********************************" << endl;
17 exit( 1 );
18 }
19
22
24 fnames.push_back( argv[1] );
26
27 for ( uint32_t i = 0; i < fnames.size(); ++i )
28 {
30 fname.push_back( fnames[i] );
32 uint32_t thePos = freader.tellg();
33
34 while ( true )
35 {
36 try
39 {
41 exit( 1 );
42 }
43
45 thePos = freader.tellg();
46 }
47
49 }
50
51 return 0;
52}
std::vector< std::string > VFileNames_t
void write(std::string fname)
void addPos(uint32_t evtId, uint32_t pos)
virtual void print() const