00001 // $Id: TGo4CommandRunnable.h 999 2013-07-25 11:58:59Z linev $ 00002 //----------------------------------------------------------------------- 00003 // The GSI Online Offline Object Oriented (Go4) Project 00004 // Experiment Data Processing at EE department, GSI 00005 //----------------------------------------------------------------------- 00006 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH 00007 // Planckstr. 1, 64291 Darmstadt, Germany 00008 // Contact: http://go4.gsi.de 00009 //----------------------------------------------------------------------- 00010 // This software can be used under the license agreements as stated 00011 // in Go4License.txt file which is part of the distribution. 00012 //----------------------------------------------------------------------- 00013 00014 #ifndef TGO4COMMANDRUNNABLE_H 00015 #define TGO4COMMANDRUNNABLE_H 00016 00017 #include "TGo4TaskHandlerRunnable.h" 00018 00019 class TGo4ThreadManager; 00020 class TGo4TaskHandler; 00021 class TGo4CommandInvoker; 00022 00033 class TGo4CommandRunnable : public TGo4TaskHandlerRunnable { 00034 public: 00035 00036 TGo4CommandRunnable(const char* name, TGo4ThreadManager* man, TGo4TaskHandler* hand, Bool_t receivermode=kTRUE); 00037 00038 virtual ~TGo4CommandRunnable(); 00039 00040 virtual Int_t Run(void* ptr); 00041 00042 private: 00043 TGo4CommandRunnable(); 00044 00047 void RedirectIO(); 00048 00054 TGo4CommandInvoker* fxInvoker; 00055 }; 00056 00057 #endif //TGO4COMMANDRUNNABLE_H