GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
TGo4TaskStatus.cxx
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 #include "TGo4TaskStatus.h"
15 
16 #include "TGo4TaskHandlerStatus.h"
17 
19  TGo4Status()
20 {
21 }
22 
23 TGo4TaskStatus::TGo4TaskStatus(const char *name) :
24  TGo4Status(name)
25 {
26 }
27 
29 {
30  delete fxTaskHandlerStatus;
31  fxTaskHandlerStatus = nullptr;
32 }
33 
34 void TGo4TaskStatus::SetFlags(Bool_t blocking,
35  Bool_t autocreate,
36  Bool_t autostart,
37  Bool_t terminating,
38  Bool_t initdone)
39 {
40  fbAppBlocking = blocking;
41  fbAutoCreate = autocreate;
42  fbAutoStart = autostart;
43  fbTerminating = terminating;
44  fbInitDone = initdone;
45 }
46 
48 {
49  fxTaskHandlerStatus = thstate;
50 }
51 
52 void TGo4TaskStatus::Print(Option_t *) const
53 {
54  PrintLine("G-OOOO-> Client Status Class %s Printout: <-OOOO-G",GetName());
55  PrintLine("G-OOOO-> ---------------------------------------------- <-OOOO-G");
56  PrintLine("G-OOOO-> Blockingmode: %d", fbAppBlocking);
57  PrintLine("G-OOOO-> Autocreate: %d", fbAutoCreate);
58  PrintLine("G-OOOO-> Autostart: %d", fbAutoStart);
59  PrintLine("G-OOOO-> InitDone: %d", fbInitDone);
60  PrintLine("G-OOOO-> IsTerminating: %d", fbTerminating);
61  PrintLine("G-OOOO-> ---------------------------------------------- <-OOOO-G");
63  PrintLine("G-OOOO-> END Client Status Class Printout END <-OOOO-G");
64 }
Bool_t fbAppBlocking
void Print(Option_t *opt="") const override
void SetTaskHandlerStatus(TGo4TaskHandlerStatus *thstate)
TGo4TaskHandlerStatus * fxTaskHandlerStatus
virtual ~TGo4TaskStatus()
void SetFlags(Bool_t blocking, Bool_t autocreate, Bool_t autostart, Bool_t terminating, Bool_t initdone)
static void PrintLine(const char *text,...)
Definition: TGo4Status.cxx:101
Bool_t fbTerminating
void Print(Option_t *opt="") const override