00001 /* -*- mode: c++; c-basic-offset: 4; -*- */ 00002 #ifndef SENDS_AUTHORIZE_HH 00003 #define SENDS_AUTHORIZE_HH 00004 00005 #include "seda_stage.hh" 00006 #include "buffer_pool.hh" 00007 00008 00009 namespace sends { 00010 00019 class authorize : public seda_stage { 00020 public: 00029 authorize(int nThread, int nTrans, int nBuffer=128); 00030 00034 ~authorize(void); 00035 00040 buffer_pool& ref_resource(void); 00041 00049 void filter(transaction* trans); 00050 00056 const char* stage_name(void) const; 00057 00058 private: 00059 buffer_pool resource; 00060 }; 00061 00062 inline buffer_pool& 00063 authorize::ref_resource(void) { 00064 return resource; 00065 } 00066 } 00067 00068 #endif // !defined(SENDS_AUTHORIZE_HH)
1.5.5