CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch9/src/IOPool/Streamer/interface/TestFileReader.h

Go to the documentation of this file.
00001 #ifndef IOPool_Streamer_TestFileReader_h
00002 #define IOPool_Streamer_TestFileReader_h
00003 
00004 #include "IOPool/Streamer/interface/EventBuffer.h"
00005 #include "DataFormats/Provenance/interface/ProductRegistry.h"
00006 
00007 #include "IOPool/Streamer/interface/StreamerInputFile.h"
00008 
00009 #include "boost/shared_ptr.hpp"
00010 
00011 #include <vector>
00012 #include <memory>
00013 #include <string>
00014 #include <fstream>
00015 
00016 namespace edmtestp {
00017   class TestFileReader {
00018   public:
00019     TestFileReader(std::string const& filename, edm::EventBuffer& to,
00020                    edm::ProductRegistry& prods);
00021     virtual ~TestFileReader();
00022 
00023     void start();
00024     void join();
00025 
00026   private:
00027     void readEvents();
00028     static void run(TestFileReader*);
00029 
00030     std::string filename_;
00031     boost::shared_ptr<edm::StreamerInputFile> streamReader_;
00032     //std::ifstream ist_;
00033     //edm::EventReader reader_;
00034     edm::EventBuffer& to_;
00035     boost::shared_ptr<boost::thread> me_;
00036   };
00037 
00038 }
00039 
00040 #endif
00041