lsmp/lsmp_prod.hh

00001 /* -*- mode: c++; c-basic-offset: 4; -*- */
00002 //
00003 //   LSMP is the Ligo Shared Memory Partition object class
00004 //
00005 #ifndef LSMP_PROD_HH
00006 #define LSMP_PROD_HH
00007 
00008 #include "lsmp.hh"
00009 
00020 class LSMP_PROD : public LSMP {
00021   //------------------------------------  Public methods
00022   public:
00027     LSMP_PROD(void);
00028 
00035     LSMP_PROD(const char* part);
00036 
00046     LSMP_PROD(const char* part, int nbuf, int lbuf);
00047 
00052     ~LSMP_PROD(void);
00053 
00059     bool operator! (void) const;
00060 
00073     char* get_buffer(int flags=0);
00074 
00090     void release(int length, int mask=-1, int flags=0);
00091 
00096     void return_buffer(void);
00097 
00104     void SetID(int ID);
00105 
00106   private:
00111     int    ibuf;
00112 };
00113 
00114 //======================================  Inline functions
00115 inline bool
00116 LSMP_PROD::operator!(void) const {
00117     return valid();
00118 }
00119 
00120 #endif  // LSMP_PROD_HH
00121 

Generated on Sun Mar 8 19:20:51 2009 for dmt by  doxygen 1.5.4