00001 //--------------------------------------------------------------- 00002 // Go4 Release Package v2.10-5 (build 21005) 00003 // 03-Nov-2005 00004 //--------------------------------------------------------------- 00005 // The GSI Online Offline Object Oriented (Go4) Project 00006 // Experiment Data Processing at DVEE 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 "Go4StatusBase/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 00053 virtual Int_t PrintStatus(Text_t* buffer=0, Int_t buflen=0); 00054 00055 private: 00056 TGo4TaskHandlerStatus(const char*); 00057 00058 void SetFlags(Bool_t isaborting); 00059 00060 void SetPorts(UInt_t neg, Int_t com, Int_t stat, Int_t dat); 00061 00062 void SetNames(const char* com, const char* stat, const char* dat, const char* host); 00063 00065 TString fxComName; 00066 00068 TString fxStatName; 00069 00071 TString fxDatName; 00072 00074 TString fxHostName; 00075 00077 UInt_t fuNegPort; 00078 00080 Int_t fiComPort; 00081 00083 Int_t fiStatPort; 00084 00086 Int_t fiDatPort; 00087 00092 Bool_t fbIsAborting; 00093 00094 ClassDef(TGo4TaskHandlerStatus,1) 00095 }; 00096 00097 #endif //TGO4TASKHANDLERSTATUS_H 00098 00099 //----------------------------END OF GO4 SOURCE FILE ---------------------