00001 // $Id: TGo4AnalysisObjectResult.h 831 2012-01-02 16:26:24Z 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 TGO4ANALYSISOBJECTRESULT_H 00015 #define TGO4ANALYSISOBJECTRESULT_H 00016 00017 #include "TGo4Status.h" 00018 00019 class TGo4AnalysisObjectNames; 00020 00032 enum Go4ResultAction_t 00033 { 00034 kGo4ActionNul, // NOP 00035 kGo4ActionRefresh, // Refresh this object 00036 kGo4ActionPlot, // Display object 00037 kGo4ActionEdit, // Get work object into editor 00038 kGo4ActionError // Display Error message 00039 }; 00040 00041 00042 class TGo4AnalysisObjectResult : public TGo4Status { 00043 00044 00045 public: 00046 00047 TGo4AnalysisObjectResult(); 00048 00049 TGo4AnalysisObjectResult(const char* name); 00050 00051 virtual ~TGo4AnalysisObjectResult(); 00052 00053 void SetNamesList(TGo4AnalysisObjectNames* n) { fxNamesList = n;} 00054 00056 TGo4AnalysisObjectNames * GetNamesList(Bool_t chown=kTRUE); 00057 00058 const char* GetObjectFullName() const { return fxFullName.Data(); } 00059 00060 void SetObjectFullName(const char* nam) { fxFullName=nam; } 00061 00062 const char* GetMessage() const { return fxMessage.Data(); } 00063 00064 void SetMessage(const char* nam) { fxMessage=nam; } 00065 00066 void SetAction(Go4ResultAction_t com) { fiAction=com; } 00067 00068 Go4ResultAction_t Action() const { return fiAction; } 00069 00072 virtual Int_t PrintStatus(Text_t* buffer=0, Int_t buflen=0); 00073 00074 private: 00075 00077 TGo4AnalysisObjectNames* fxNamesList; 00078 00080 TString fxFullName; 00081 00083 Go4ResultAction_t fiAction; 00084 00086 TString fxMessage; 00087 00088 ClassDef(TGo4AnalysisObjectResult,2) 00089 }; 00090 00091 #endif //TGO4ANALYSISOBJECTRESULT_H