00001 // $Id: TGo4ExampleClient.h 478 2009-10-29 12:26:09Z 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 TGO4EXAMPLECLIENT_H 00015 #define TGO4EXAMPLECLIENT_H 00016 00017 #include "TGo4ClientTask.h" 00018 00019 class TGo4TaskStatus; 00020 class TGo4ExampleApplication; 00021 class TGo4ClientStatus; 00022 00029 class TGo4ExampleClient : public TGo4ClientTask { 00030 public: 00031 00032 TGo4ExampleClient(const char* name, 00033 const char* host="localhost", 00034 UInt_t negport=0, 00035 Bool_t blockingmode=kTRUE); 00036 00037 virtual ~TGo4ExampleClient(); 00038 00039 TGo4ExampleApplication* GetApplication(); 00040 00041 virtual void Start(); 00042 00043 virtual void Stop(); 00044 00046 static const char* fgcMAINTHREAD; 00047 00049 static const char* fgcWATCHTHREAD; 00050 00051 protected: 00052 00059 virtual void UpdateStatus(TGo4ClientStatus* state); 00060 00061 public: 00068 virtual TGo4TaskStatus * CreateStatus(); 00069 00070 private: 00071 00072 TGo4ExampleClient(); 00073 00077 TGo4ExampleApplication* fxApplication; 00078 00080 TString fcMainName; 00081 00083 TString fcWatchName; 00084 00085 ClassDef(TGo4ExampleClient,1) 00086 }; 00087 00088 #endif //TGO4EXAMPLECLIENT_H