GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
TGo4TaskStatus.h
Go to the documentation of this file.
1 // $Id$
2 //-----------------------------------------------------------------------
3 // The GSI Online Offline Object Oriented (Go4) Project
4 // Experiment Data Processing at EE department, GSI
5 //-----------------------------------------------------------------------
6 // Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
7 // Planckstr. 1, 64291 Darmstadt, Germany
8 // Contact: http://go4.gsi.de
9 //-----------------------------------------------------------------------
10 // This software can be used under the license agreements as stated
11 // in Go4License.txt file which is part of the distribution.
12 //-----------------------------------------------------------------------
13 
14 #ifndef TGO4TASKSTATUS_H
15 #define TGO4TASKSTATUS_H
16 
17 #include "TGo4Status.h"
18 
20 
21 class TGo4TaskStatus : public TGo4Status {
22  friend class TGo4Task;
23  friend class TGo4Slave;
24 
25  public:
26 
28 
29  virtual ~TGo4TaskStatus();
30 
31  Bool_t IsInitDone() const { return fbInitDone; }
32 
33  Bool_t IsTerminating() const { return fbTerminating; }
34 
35  Bool_t IsAutoStart() const { return fbAutoStart; }
36 
37  Bool_t IsAutoCreate() const { return fbAutoCreate; }
38 
39  Bool_t IsAppBlocking() const { return fbAppBlocking; }
40 
42 
44  void Print(Option_t *opt = "") const override;
45 
46  protected:
47 
48  void SetFlags(Bool_t blocking, Bool_t autocreate, Bool_t autostart, Bool_t terminating, Bool_t initdone);
49 
51 
52  Bool_t fbAppBlocking{kFALSE};
53  Bool_t fbAutoCreate{kFALSE};
54  Bool_t fbAutoStart{kFALSE};
55  Bool_t fbTerminating{kFALSE};
56 
60  Bool_t fbInitDone{kFALSE};
61 
62  TGo4TaskStatus(const char *name);
63 
64  ClassDefOverride(TGo4TaskStatus,1)
65 };
66 
67 #endif //TGO4TASKSTATUS_H
Bool_t fbAppBlocking
Bool_t IsAutoStart() const
void Print(Option_t *opt="") const override
void SetTaskHandlerStatus(TGo4TaskHandlerStatus *thstate)
TGo4TaskHandlerStatus * GetTaskHandlerStatus() const
Bool_t IsAppBlocking() const
Bool_t IsTerminating() const
TGo4TaskHandlerStatus * fxTaskHandlerStatus
virtual ~TGo4TaskStatus()
void SetFlags(Bool_t blocking, Bool_t autocreate, Bool_t autostart, Bool_t terminating, Bool_t initdone)
Bool_t IsAutoCreate() const
Bool_t fbTerminating
Bool_t IsInitDone() const