CMS 3D CMS Logo

FUShmClient.h

Go to the documentation of this file.
00001 #ifndef FUSHMCLIENT_H
00002 #define FUSHMCLIENT_H
00003 
00004 
00005 #include "EventFilter/ShmBuffer/interface/FUShmBuffer.h"
00006 
00007 #include <vector>
00008 
00009 
00010 namespace evf {
00011   
00012 
00013   class FUShmClient
00014   {
00015   public:
00016     //
00017     // construction/destruction
00018     //
00019     FUShmClient(FUShmBuffer* buffer);
00020     ~FUShmClient();
00021     
00022     
00023     //
00024     // member functions
00025     //
00026     unsigned int readNext(std::vector<std::vector<unsigned char> > &feds);
00027 
00028     double       crashPrb() const        { return crashPrb_; }
00029     void         setCrashPrb(double prb) { crashPrb_=prb;    }
00030     void         setSleep(int sec)       {  sleep_ = sec;    }
00031     
00032   private:
00033     //
00034     // member data
00035     //
00036     FUShmBuffer* buffer_;
00037     double       crashPrb_;
00038     int          sleep_;
00039   };
00040   
00041   
00042 } // namespace evf
00043 
00044 
00045 #endif

Generated on Tue Jun 9 17:34:47 2009 for CMSSW by  doxygen 1.5.4