Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

TGo4TaskHandlerRunnable.h

Go to the documentation of this file.
00001 //-------------------------------------------------------------
00002 //        Go4 Release Package v3.04-01 (build 30401)
00003 //                      28-November-2008
00004 //---------------------------------------------------------------
00005 //   The GSI Online Offline Object Oriented (Go4) Project
00006 //   Experiment Data Processing at EE department, GSI
00007 //---------------------------------------------------------------
00008 //
00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI
00010 //                    Planckstr. 1, 64291 Darmstadt, Germany
00011 //Contact:            http://go4.gsi.de
00012 //----------------------------------------------------------------
00013 //This software can be used under the license agreements as stated
00014 //in Go4License.txt file which is part of the distribution.
00015 //----------------------------------------------------------------
00016 #ifndef TGO4TASKHANDLERRUNNABLE_H
00017 #define TGO4TASKHANDLERRUNNABLE_H
00018 
00019 #include "TGo4Runnable.h"
00020 
00021 class TGo4Socket;
00022 class TGo4ThreadManager;
00023 class TGo4TaskHandler;
00024 class TGo4ObjectQueue;
00025 class TGo4BufferQueue;
00026 
00033 class TGo4TaskHandlerRunnable : public TGo4Runnable {
00034 
00035    public:
00036 
00037       TGo4TaskHandlerRunnable(const char* name, TGo4ThreadManager* man, TGo4TaskHandler* hand, Bool_t receivermode=kTRUE);
00038 
00039       virtual ~TGo4TaskHandlerRunnable();
00040 
00041       virtual Int_t Run(void* ptr) =0;
00042 
00043       TGo4TaskHandler* GetTaskHandler();
00044 
00045    protected:
00046 
00052       Bool_t CheckStopBuffer(TBuffer* buf, Int_t* result=0);
00053 
00056       Bool_t CheckTransportOpen();
00057 
00059       TGo4Socket* fxTransport;
00060 
00064       TGo4TaskHandler* fxTaskHandler; 
00065 
00068       Bool_t fbReceiverMode;
00069 
00071       TGo4BufferQueue * fxBufferQueue; 
00072 
00073     private:
00074       TGo4TaskHandlerRunnable();
00075 };
00076 
00077 #endif //TGO4TASKHANDLERRUNNABLE_H
00078 
00079 //----------------------------END OF GO4 SOURCE FILE ---------------------

Generated on Fri Nov 28 12:59:30 2008 for Go4-v3.04-1 by  doxygen 1.4.2