00001 #ifndef IOPool_Streamer_StreamDQMInputFile_h 00002 #define IOPool_Streamer_StreamDQMInputFile_h 00003 00004 #include "IOPool/Streamer/interface/DQMEventMessage.h" 00005 00006 #include<string> 00007 #include<vector> 00008 #include<fstream> 00009 00010 class StreamDQMInputFile 00011 { 00012 public: 00013 00015 explicit StreamDQMInputFile(const std::string& name); 00016 00017 ~StreamDQMInputFile(); 00018 00019 bool next() ; 00021 const DQMEventMsgView* currentRecord() const { return currentEvMsg_; } 00024 private: 00025 00026 int readDQMEventMessage(); 00027 00028 DQMEventMsgView* currentEvMsg_; 00029 std::auto_ptr<std::ifstream> ist_; 00030 std::vector<char> eventBuf_; 00031 }; 00032 00033 #endif