00001 // $Id: TGo4TaskStatus.h 478 2009-10-29 12:26:09Z 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 TGO4TASKSTATUS_H 00015 #define TGO4TASKSTATUS_H 00016 00017 #include "TGo4Status.h" 00018 00019 class TGo4TaskHandlerStatus; 00020 00021 class TGo4TaskStatus : public TGo4Status { 00022 friend class TGo4Task; 00023 friend class TGo4Slave; 00024 00025 public: 00026 00027 TGo4TaskStatus(); 00028 00029 virtual ~TGo4TaskStatus(); 00030 00031 Bool_t IsInitDone() const { return fbInitDone; } 00032 00033 Bool_t IsTerminating() const { return fbTerminating; } 00034 00035 Bool_t IsAutoStart() const { return fbAutoStart; } 00036 00037 Bool_t IsAutoCreate() const { return fbAutoCreate; } 00038 00039 Bool_t IsAppBlocking() const { return fbAppBlocking; } 00040 00041 TGo4TaskHandlerStatus* GetTaskHandlerStatus() const { return fxTaskHandlerStatus; } 00042 00044 virtual Int_t PrintStatus(Text_t* buffer=0, Int_t buflen=0); 00045 00046 protected: 00047 00048 void SetFlags(Bool_t blocking, Bool_t autocreate, Bool_t autostart, Bool_t terminating, Bool_t initdone); 00049 00050 void SetTaskHandlerStatus(TGo4TaskHandlerStatus* thstate); 00051 00052 Bool_t fbAppBlocking; 00053 Bool_t fbAutoCreate; 00054 Bool_t fbAutoStart; 00055 Bool_t fbTerminating; 00056 00059 TGo4TaskHandlerStatus * fxTaskHandlerStatus; 00060 Bool_t fbInitDone; 00061 00062 TGo4TaskStatus(const char* name); 00063 00064 ClassDef(TGo4TaskStatus,1) 00065 }; 00066 00067 #endif //TGO4TASKSTATUS_H