GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
TGo4TaskHandlerStatus.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 "TGo4TaskHandlerStatus.h"
15 
17  TGo4Status()
18 {
19 }
20 
22  TGo4Status(name)
23 {
24 }
25 
27 {
28 }
29 
30 void TGo4TaskHandlerStatus::Print(Option_t *) const
31 {
32  PrintLine("G-OOOO-> TaskHandler Status Class %s Printout: <-OOOO-G",GetName());
33  PrintLine("G-OOOO-> --------------------------------------------------------------------- <-OOOO-G");
34  PrintLine("G-OOOO-> Remote Server: %s", GetHostName());
35  PrintLine("G-OOOO-> Negotiation Port: %d", fuNegPort);
36  PrintLine("G-OOOO-> Command Thread: %s", GetComName());
37  PrintLine("G-OOOO-> Command Port: %d", fiComPort);
38  PrintLine("G-OOOO-> Data Thread: %s", GetDatName());
39  PrintLine("G-OOOO-> Data Port: %d", fiDatPort);
40  PrintLine("G-OOOO-> Status Thread: %s", GetStatName());
41  PrintLine("G-OOOO-> Status Port: %d", fiStatPort);
42  PrintLine("G-OOOO-> Aborting State: %s", fbIsAborting ? "TRUE" : "FALSE");
43  PrintLine("G-OOOO-> END TaskHandler Status Class Printout END <-OOOO-G");
44 }
45 
46 void TGo4TaskHandlerStatus::SetFlags(Bool_t isaborting)
47 {
48  fbIsAborting = isaborting;
49 }
50 
51 void TGo4TaskHandlerStatus::SetPorts(UInt_t neg, Int_t com, Int_t stat, Int_t dat)
52 {
53  fuNegPort = neg;
54  fiComPort = com;
55  fiStatPort = stat;
56  fiDatPort = dat;
57 }
58 
59 void TGo4TaskHandlerStatus::SetNames(const char *com, const char *stat, const char *dat, const char *host)
60 {
61  fxComName = com;
62  fxStatName = stat;
63  fxDatName = dat;
64  fxHostName = host;
65 }
void SetPorts(UInt_t neg, Int_t com, Int_t stat, Int_t dat)
const char * GetDatName() const
const char * GetComName() const
void SetFlags(Bool_t isaborting)
static void PrintLine(const char *text,...)
Definition: TGo4Status.cxx:101
const char * GetStatName() const
void Print(Option_t *opt="") const override
const char * GetHostName() const
void SetNames(const char *com, const char *stat, const char *dat, const char *host)