00001 //------------------------------------------------------------- 00002 // Go4 Release Package v3.04-01 (build 30401) 00003 // 28-November-2008 00004 //--------------------------------------------------------------- 00005 // The GSI Online Offline Object Oriented (Go4) Project 00006 // Experiment Data Processing at EE department, GSI 00007 //--------------------------------------------------------------- 00008 // 00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI 00010 // Planckstr. 1, 64291 Darmstadt, Germany 00011 //Contact: http://go4.gsi.de 00012 //---------------------------------------------------------------- 00013 //This software can be used under the license agreements as stated 00014 //in Go4License.txt file which is part of the distribution. 00015 //---------------------------------------------------------------- 00016 #ifndef TGO4TASKHANDLERSTATUS_H 00017 #define TGO4TASKHANDLERSTATUS_H 00018 00019 #include "TGo4Status.h" 00020 #include "TString.h" 00021 00022 class TGo4TaskHandlerStatus : public TGo4Status { 00023 friend class TGo4TaskHandler; 00024 public: 00025 00026 TGo4TaskHandlerStatus(); // default ctor for streamer 00027 00028 virtual ~TGo4TaskHandlerStatus(); 00029 00030 const char* GetComName() const { return fxComName.Data(); } 00031 00032 const char* GetStatName() const { return fxStatName.Data(); } 00033 00034 const char* GetDatName() const { return fxDatName.Data(); } 00035 00036 const char* GetHostName() const { return fxHostName.Data(); } 00037 00038 UInt_t GetNegPort() const { return fuNegPort; } 00039 00040 Int_t GetComPort() const { return fiComPort; } 00041 00042 Int_t GetStatPort() const { return fiStatPort; } 00043 00044 Int_t GetDatPort() const { return fiDatPort; } 00045 00046 Bool_t IsAborting() const { return fbIsAborting; } 00047 00048 virtual Int_t PrintStatus(Text_t* buffer=0, Int_t buflen=0); 00049 00050 private: 00051 TGo4TaskHandlerStatus(const char*); 00052 00053 void SetFlags(Bool_t isaborting); 00054 00055 void SetPorts(UInt_t neg, Int_t com, Int_t stat, Int_t dat); 00056 00057 void SetNames(const char* com, const char* stat, const char* dat, const char* host); 00058 00060 TString fxComName; 00061 00063 TString fxStatName; 00064 00066 TString fxDatName; 00067 00069 TString fxHostName; 00070 00072 UInt_t fuNegPort; 00073 00075 Int_t fiComPort; 00076 00078 Int_t fiStatPort; 00079 00081 Int_t fiDatPort; 00082 00084 Bool_t fbIsAborting; 00085 00086 ClassDef(TGo4TaskHandlerStatus,1) 00087 }; 00088 00089 #endif //TGO4TASKHANDLERSTATUS_H 00090 00091 //----------------------------END OF GO4 SOURCE FILE ---------------------