CMS 3D CMS Logo

setRefStreamer.h

Go to the documentation of this file.
00001 #ifndef FWCore_FWLite_setRefStreamer_h
00002 #define FWCore_FWLite_setRefStreamer_h
00003 // -*- C++ -*-
00004 //
00005 // Package:     FWLite
00006 // Class  :     setRefStreamer
00007 // 
00016 //
00017 // Original Author:  Chris Jones
00018 //         Created:  Tue May 15 11:25:51 EDT 2007
00019 // $Id: setRefStreamer.h,v 1.1 2007/05/16 14:32:31 chrjones Exp $
00020 //
00021 
00022 // system include files
00023 
00024 // user include files
00025 
00026 // forward declarations
00027 namespace edm {
00028   class EDProductGetter;
00029 }
00030 
00031 namespace fwlite {
00032   edm::EDProductGetter const* setRefStreamer(edm::EDProductGetter const* ep);
00033   
00034   class GetterOperate {
00035 public:
00036     GetterOperate( edm::EDProductGetter const* iEP): old_(0) {
00037       old_ = setRefStreamer(iEP);
00038     }
00039     ~GetterOperate() {
00040       setRefStreamer(old_);
00041     }
00042 private:
00043     edm::EDProductGetter const* old_;
00044   };
00045 }
00046 
00047 
00048 #endif

Generated on Tue Jun 9 17:36:12 2009 for CMSSW by  doxygen 1.5.4