#include "RawFile/RawFileReader.h"
#include "RawFile/EvtIdxHandler.h"
#include "RawFile/RawFileTools.h"
#include "IRawFile/RawFileExceptions.h"
#include <iostream>
#include <cstdlib>
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.
11{
12 if ( argc != 2 ) {
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 ) {
29 fname.push_back(fnames[i]);
31 uint32_t thePos = freader.tellg();
32
33 while ( true ) {
34 try {
35 data = freader.nextEvent();
36 }
38 break;
39 }
42 exit(1);
43 }
44
46 thePos = freader.tellg();
47 }
48
50 }
51
52 return 0;
53}
std::vector< std::string > VFileNames_t
void write(std::string fname)
void addPos(uint32_t evtId, uint32_t pos)
virtual void print() const