00001 // $Id: TGo4ExampleServer.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 TGO4EXAMPLESERVER_H 00015 #define TGO4EXAMPLESERVER_H 00016 00017 #include "TGo4ServerTask.h" 00018 00019 #include "TGo4ExampleController.h" 00020 00025 class TGo4ExampleServer : public TGo4ServerTask { 00026 00027 public: 00028 00029 TGo4ExampleServer(const char* name, 00030 UInt_t negotiationport=0, 00031 Bool_t blockingmode=kFALSE); 00032 00033 virtual ~TGo4ExampleServer(); 00034 00035 TGo4ExampleController* GetController(); 00036 00037 TGo4TaskHandlerCommandList* CreateCommandList(); 00038 00039 virtual Int_t StartWorkThreads(); 00040 00041 virtual Int_t StopWorkThreads(); 00042 00044 static const char* fgcCONTROLTHREAD; 00045 00047 static const char* fgcLOGGINGTHREAD; 00048 00049 private: 00050 00051 TGo4ExampleServer(); 00052 00056 TGo4ExampleController * fxController; 00057 00059 TString fcControlName; 00060 00062 TString fcLoggingName; 00063 00064 ClassDef(TGo4ExampleServer,1) 00065 }; 00066 00067 #endif //TGO4EXAMPLESERVER_H