GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
TGo4TaskHandlerStatus.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 TGO4TASKHANDLERSTATUS_H
15#define TGO4TASKHANDLERSTATUS_H
16
17#include "TGo4Status.h"
18#include "TString.h"
19
24 friend class TGo4TaskHandler;
25 public:
26
27 TGo4TaskHandlerStatus(); // default ctor for streamer
28
29 virtual ~TGo4TaskHandlerStatus();
30
31 const char *GetComName() const { return fxComName.Data(); }
32
33 const char *GetStatName() const { return fxStatName.Data(); }
34
35 const char *GetDatName() const { return fxDatName.Data(); }
36
37 const char *GetHostName() const { return fxHostName.Data(); }
38
39 UInt_t GetNegPort() const { return fuNegPort; }
40
41 Int_t GetComPort() const { return fiComPort; }
42
43 Int_t GetStatPort() const { return fiStatPort; }
44
45 Int_t GetDatPort() const { return fiDatPort; }
46
47 Bool_t IsAborting() const { return fbIsAborting; }
48
49 void Print(Option_t *opt = "") const override;
50
51 private:
52 TGo4TaskHandlerStatus(const char *);
53
54 void SetFlags(Bool_t isaborting);
55
56 void SetPorts(UInt_t neg, Int_t com, Int_t stat, Int_t dat);
57
58 void SetNames(const char *com, const char *stat, const char *dat, const char *host);
59
61 TString fxComName;
62
64 TString fxStatName;
65
67 TString fxDatName;
68
70 TString fxHostName;
71
73 UInt_t fuNegPort{0};
74
76 Int_t fiComPort{0};
77
79 Int_t fiStatPort{0};
80
82 Int_t fiDatPort{0};
83
85 Bool_t fbIsAborting{kFALSE};
86
87 ClassDefOverride(TGo4TaskHandlerStatus,1)
88};
89
90#endif //TGO4TASKHANDLERSTATUS_H
TString fxDatName
Remember name of data thread.
void SetPorts(UInt_t neg, Int_t com, Int_t stat, Int_t dat)
TString fxHostName
Remember name of remote task handler.
Int_t fiStatPort
Status connection port number.
const char * GetHostName() const
void Print(Option_t *opt="") const override
Int_t fiComPort
Command connection port number.
const char * GetDatName() const
Int_t fiDatPort
Data connection port number.
const char * GetComName() const
UInt_t fuNegPort
Actual port number of negotiation connection (raw transport)
TString fxStatName
Remember name of status thread.
TString fxComName
Remember name of command thread.
void SetNames(const char *com, const char *stat, const char *dat, const char *host)
Bool_t fbIsAborting
true if taskhandler is being aborted e.g.
void SetFlags(Bool_t isaborting)
const char * GetStatName() const