CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_4_5_patch3/src/EventFilter/ResourceBroker/interface/BUProxy.h

Go to the documentation of this file.
00001 #ifndef BUPROXY_H
00002 #define BUPROXY_H
00003 
00004 
00005 #include "EventFilter/ResourceBroker/interface/FUTypes.h"
00006 #include "EventFilter/Utilities/interface/Exception.h"
00007 #include "xdaq/Application.h"
00008 
00009 
00010 namespace evf {
00011 
00012   class BUProxy
00013   {
00014   public:  
00015     //
00016     // construction/destruction
00017     //
00018     BUProxy(xdaq::ApplicationDescriptor *fuAppDesc, 
00019             xdaq::ApplicationDescriptor *buAppDesc, 
00020             xdaq::ApplicationContext    *fuAppContext,
00021             toolbox::mem::Pool          *i2oPool);
00022     virtual ~BUProxy();
00023     
00024     
00025     //
00026     // member functions
00027     //
00028     void sendAllocate(const UIntVec_t& fuResourceIds) throw (evf::Exception);
00029     void sendDiscard(UInt_t buResourceId) throw (evf::Exception);
00030     
00031     
00032   private:
00033     //
00034     // member data
00035     //
00036     xdaq::ApplicationDescriptor *fuAppDesc_;
00037     xdaq::ApplicationDescriptor *buAppDesc_;
00038     xdaq::ApplicationContext    *fuAppContext_;
00039     toolbox::mem::Pool          *i2oPool_;
00040   
00041   }; 
00042 
00043 } // namespace evf
00044 
00045 
00046 #endif