00001 // 00002 // Pibero Djawotho <pibero@iucf.indiana.edu> 00003 // Indiana University 00004 // Feb 18, 2006 00005 // 00006 00007 #ifndef JanEventReader_hh 00008 #define JanEventReader_hh 00009 00010 // C++ 00011 #include <string> 00012 #include <fstream> 00013 00014 // Local 00015 class JanEvent; 00016 00017 class JanEventReader { 00018 public: 00019 JanEventReader(const string& filename = "/dev/stdin"); 00020 ~JanEventReader(); 00021 00022 istream& operator()(JanEvent& event); 00023 bool isOpen(){ return in!=0;} 00024 00025 private: 00026 ifstream& in; 00027 }; 00028 00029 #endif
1.5.9