StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
JanEventReader.h
1 //
2 // Pibero Djawotho <pibero@iucf.indiana.edu>
3 // Indiana University
4 // Feb 18, 2006
5 //
6 
7 #ifndef JanEventReader_hh
8 #define JanEventReader_hh
9 
10 // C++
11 #include <string>
12 #include <fstream>
13 
14 // Local
15 class JanEvent;
16 
18 public:
19  JanEventReader(const string& filename = "/dev/stdin");
20  ~JanEventReader();
21 
22  istream& operator()(JanEvent& event);
23  bool isOpen(){ return in.is_open();}
24 
25 private:
26  ifstream& in;
27 };
28 
29 #endif