Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

TGo4AppControlTimer.h

Go to the documentation of this file.
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 TGo4AppControlTimer_h
00017 #define TGo4AppControlTimer_h
00018 
00019 #include "TTimer.h"
00020 
00021 class TGo4ThreadManager;
00022 class TCondition;
00023 
00042 class TGo4AppControlTimer : public TTimer {
00043 
00044   public:
00045       TGo4AppControlTimer (TGo4ThreadManager* manager, Long_t msperiod = 3000, Bool_t mode = kTRUE);
00046 
00047       virtual ~TGo4AppControlTimer();
00048 
00050       void SetManager (TGo4ThreadManager* parent) { fxManager=parent; }
00051 
00053       virtual Bool_t Notify ();
00054 
00059       const TCondition* GetCondition () const { return fxCondition;}
00060 
00067       void SetApplicationRun (Bool_t flag = kTRUE) { fbApplicationRun=flag; }
00068 
00072       Bool_t GetApplicationRun();
00073 
00074   protected:
00082       static UInt_t fguTERMWAIT;       
00083 
00090       static Int_t fgiTERMWAITCYCLES;     
00091 
00097       TGo4ThreadManager *fxManager;     
00098 
00099   private:
00100 
00101       Bool_t fbApplicationRun;           
00102 
00103       TCondition *fxCondition;          
00104 
00105       TGo4AppControlTimer();
00106 };
00107 
00108 #endif
00109 
00110 //----------------------------END OF GO4 SOURCE FILE ---------------------

Generated on Fri Nov 28 12:59:31 2008 for Go4-v3.04-1 by  doxygen 1.4.2