CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_8_patch3/src/IOPool/Streamer/src/TestConsumer.h

Go to the documentation of this file.
00001 #ifndef IOPool_Streamer_TestConsumer_h
00002 #define IOPool_Streamer_TestConsumer_h
00003 
00004 #include "IOPool/Streamer/interface/EventBuffer.h"
00005 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00006 
00007 #include "boost/shared_ptr.hpp"
00008 
00009 namespace edmtest
00010 {
00011   class Worker;
00012 
00013   class TestConsumer
00014   {
00015   public:
00016     TestConsumer(edm::ParameterSet const& ps, 
00017                  edm::EventBuffer* buf);
00018 
00019     ~TestConsumer();
00020 
00021     void bufferReady();
00022     void stop();
00023     void sendRegistry(void* buf, int len);
00024 
00025   private:
00026     boost::shared_ptr<Worker> worker_;
00027     edm::EventBuffer* bufs_; //does not own the buffer
00028   };
00029 }
00030 
00031 #endif
00032