GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4TaskHandlerStatus.h
Go to the documentation of this file.
1 // $Id: TGo4TaskHandlerStatus.h 478 2009-10-29 12:26:09Z linev $
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 für 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 TGO4TASKHANDLERSTATUS_H
15 #define TGO4TASKHANDLERSTATUS_H
16 
17 #include "TGo4Status.h"
18 #include "TString.h"
19 
21  friend class TGo4TaskHandler;
22  public:
23 
24  TGo4TaskHandlerStatus(); // default ctor for streamer
25 
26  virtual ~TGo4TaskHandlerStatus();
27 
28  const char* GetComName() const { return fxComName.Data(); }
29 
30  const char* GetStatName() const { return fxStatName.Data(); }
31 
32  const char* GetDatName() const { return fxDatName.Data(); }
33 
34  const char* GetHostName() const { return fxHostName.Data(); }
35 
36  UInt_t GetNegPort() const { return fuNegPort; }
37 
38  Int_t GetComPort() const { return fiComPort; }
39 
40  Int_t GetStatPort() const { return fiStatPort; }
41 
42  Int_t GetDatPort() const { return fiDatPort; }
43 
44  Bool_t IsAborting() const { return fbIsAborting; }
45 
46  virtual Int_t PrintStatus(Text_t* buffer=0, Int_t buflen=0);
47 
48  private:
49  TGo4TaskHandlerStatus(const char*);
50 
51  void SetFlags(Bool_t isaborting);
52 
53  void SetPorts(UInt_t neg, Int_t com, Int_t stat, Int_t dat);
54 
55  void SetNames(const char* com, const char* stat, const char* dat, const char* host);
56 
58  TString fxComName;
59 
61  TString fxStatName;
62 
64  TString fxDatName;
65 
67  TString fxHostName;
68 
70  UInt_t fuNegPort;
71 
73  Int_t fiComPort;
74 
76  Int_t fiStatPort;
77 
79  Int_t fiDatPort;
80 
82  Bool_t fbIsAborting;
83 
84  ClassDef(TGo4TaskHandlerStatus,1)
85 };
86 
87 #endif //TGO4TASKHANDLERSTATUS_H
void SetPorts(UInt_t neg, Int_t com, Int_t stat, Int_t dat)
const char * GetDatName() const
const char * GetComName() const
virtual Int_t PrintStatus(Text_t *buffer=0, Int_t buflen=0)
const char * GetHostName() const
void SetFlags(Bool_t isaborting)
const char * GetStatName() const
void SetNames(const char *com, const char *stat, const char *dat, const char *host)