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 TGO4EXAMPLECLIENT_H 00017 #define TGO4EXAMPLECLIENT_H 00018 00019 #include "TGo4ClientTask.h" 00020 00021 class TGo4TaskStatus; 00022 class TGo4ExampleApplication; 00023 class TGo4ClientStatus; 00024 00031 class TGo4ExampleClient : public TGo4ClientTask { 00032 public: 00033 00034 TGo4ExampleClient(const char* name, 00035 const char* host="localhost", 00036 UInt_t negport=0, 00037 Bool_t blockingmode=kTRUE); 00038 00039 virtual ~TGo4ExampleClient(); 00040 00041 TGo4ExampleApplication* GetApplication(); 00042 00043 virtual void Start(); 00044 00045 virtual void Stop(); 00046 00048 static const Text_t fgcMAINTHREAD[]; 00049 00051 static const Text_t fgcWATCHTHREAD[]; 00052 00053 protected: 00054 00061 virtual void UpdateStatus(TGo4ClientStatus* state); 00062 00063 public: 00070 virtual TGo4TaskStatus * CreateStatus(); 00071 00072 private: 00073 00074 TGo4ExampleClient(); 00075 00079 TGo4ExampleApplication* fxApplication; 00080 00082 Text_t* fcMainName; 00083 00085 Text_t* fcWatchName; 00086 00087 ClassDef(TGo4ExampleClient,1) 00088 }; 00089 00090 #endif //TGO4EXAMPLECLIENT_H 00091 00092 //----------------------------END OF GO4 SOURCE FILE ---------------------