Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

/Go4Event/TGo4EventSource.h

Go to the documentation of this file.
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 TGO4EVENTSOURCE_H
00017 #define TGO4EVENTSOURCE_H
00018 
00019 #include "TNamed.h"
00020 #include "TString.h"
00021 
00022 // following includes are for user convenience JA:
00023 #include "Go4Log/TGo4Log.h"
00024 #include <iostream>
00025 using namespace std;
00026 // end user processor compatibility includes
00027 
00028 
00029 
00030 
00039 class TGo4EventSource : public TNamed {
00040   public:
00041 
00042    TGo4EventSource(const char* name);
00043 
00044    virtual ~TGo4EventSource();
00045 
00046    TGo4EventSource();
00047 
00048      /* We overwrite the default TNamed::Clear that would
00049       *  erase our name and title!
00050       * Implement this method in your parameter class
00051       * if you would like to reset any values with the
00052       * eraser button in the gui remote browser*/
00053       virtual void Clear(Option_t* opt="");
00054 
00056    Int_t GetCreateStatus() const { return fiCreateStatus; }
00057 
00059    Int_t GetEventStatus() const { return fiEventStatus; }
00060 
00062    const char* GetErrMess() const { return fxErrMess.Data(); }
00063 
00065    static const Int_t fgiTIMEOUTDEFAULT;
00066 
00067 
00068   protected:
00073    void SetErrMess(const char* txt) { fxErrMess = txt; }
00074 
00076    void SetEventStatus(Int_t status) { fiEventStatus=status; }
00077 
00079    void SetCreateStatus(Int_t status) { fiCreateStatus=status; }
00080 
00082     void ThrowError(Int_t creastat, Int_t errstat,Text_t* message,...);
00083 
00085    static const UInt_t fguTXTLEN;
00086 
00087   private:
00088 
00090    Int_t fiCreateStatus;
00091 
00093    Int_t fiEventStatus;
00094 
00096    TString fxErrMess; 
00097 
00098    ClassDef(TGo4EventSource,1)
00099 };
00100 
00101 #endif //TGO4EVENTSOURCE_H
00102 
00103 //----------------------------END OF GO4 SOURCE FILE ---------------------

Generated on Tue Nov 8 10:55:53 2005 for Go4-v2.10-5 by doxygen1.2.15