00001 // $Id: TGo4TaskHandlerStatus.h 478 2009-10-29 12:26:09Z linev $ 00002 //----------------------------------------------------------------------- 00003 // The GSI Online Offline Object Oriented (Go4) Project 00004 // Experiment Data Processing at EE department, GSI 00005 //----------------------------------------------------------------------- 00006 // Copyright (C) 2000- GSI Helmholtzzentrum f�r Schwerionenforschung GmbH 00007 // Planckstr. 1, 64291 Darmstadt, Germany 00008 // Contact: http://go4.gsi.de 00009 //----------------------------------------------------------------------- 00010 // This software can be used under the license agreements as stated 00011 // in Go4License.txt file which is part of the distribution. 00012 //----------------------------------------------------------------------- 00013 00014 #ifndef TGO4TASKHANDLERSTATUS_H 00015 #define TGO4TASKHANDLERSTATUS_H 00016 00017 #include "TGo4Status.h" 00018 #include "TString.h" 00019 00020 class TGo4TaskHandlerStatus : public TGo4Status { 00021 friend class TGo4TaskHandler; 00022 public: 00023 00024 TGo4TaskHandlerStatus(); // default ctor for streamer 00025 00026 virtual ~TGo4TaskHandlerStatus(); 00027 00028 const char* GetComName() const { return fxComName.Data(); } 00029 00030 const char* GetStatName() const { return fxStatName.Data(); } 00031 00032 const char* GetDatName() const { return fxDatName.Data(); } 00033 00034 const char* GetHostName() const { return fxHostName.Data(); } 00035 00036 UInt_t GetNegPort() const { return fuNegPort; } 00037 00038 Int_t GetComPort() const { return fiComPort; } 00039 00040 Int_t GetStatPort() const { return fiStatPort; } 00041 00042 Int_t GetDatPort() const { return fiDatPort; } 00043 00044 Bool_t IsAborting() const { return fbIsAborting; } 00045 00046 virtual Int_t PrintStatus(Text_t* buffer=0, Int_t buflen=0); 00047 00048 private: 00049 TGo4TaskHandlerStatus(const char*); 00050 00051 void SetFlags(Bool_t isaborting); 00052 00053 void SetPorts(UInt_t neg, Int_t com, Int_t stat, Int_t dat); 00054 00055 void SetNames(const char* com, const char* stat, const char* dat, const char* host); 00056 00058 TString fxComName; 00059 00061 TString fxStatName; 00062 00064 TString fxDatName; 00065 00067 TString fxHostName; 00068 00070 UInt_t fuNegPort; 00071 00073 Int_t fiComPort; 00074 00076 Int_t fiStatPort; 00077 00079 Int_t fiDatPort; 00080 00082 Bool_t fbIsAborting; 00083 00084 ClassDef(TGo4TaskHandlerStatus,1) 00085 }; 00086 00087 #endif //TGO4TASKHANDLERSTATUS_H