00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00021 00022 00023 00024 00025 00026 00027 00028 00029 00030 00031 00032 00033 00034 00035 00036 00037 00038 00039 00040 #ifndef __ACQ_HPP__ 00041 #define __ACQ_HPP__ 00042 00043 #include <boost/thread/thread.hpp> 00044 #include "param.hpp" 00045 #include "paramip.hpp" 00046 #include "paramdisk.hpp" 00047 #include "fill.hpp" 00048 00049 00050 namespace ipsi 00051 { 00052 00062 template<class T, size_t N, class F> 00063 class acq 00064 { 00065 public: 00083 acq( buffer_t* buff , 00084 boost::mutex* lock , 00085 size_t* cur , 00086 size_t* send , 00087 bool* run , 00088 bool* ready , 00089 Param* param , 00090 Caminfo* ci ); 00091 00096 acq( const acq& src ); 00097 00101 ~acq(); 00102 00106 void operator()(); 00107 00108 private: 00110 Connection* c; 00111 00113 unsigned int mIdx ; 00115 buffer_t *mBuffer; 00117 boost::mutex *mLock ; 00119 unsigned int *mCur , 00121 *mSend ; 00123 bool *mRun ; 00125 bool mRun2 ; 00127 bool *mReady ; 00128 00130 F mFunc ; 00132 Param* mParam ; 00133 00134 Caminfo* mCi ; 00135 00136 }; 00137 00138 #include "acq.impl.hpp" 00139 00140 } 00141 #endif