GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
TGo4ExampleClient.h
Go to the documentation of this file.
1 // $Id$
2 //-----------------------------------------------------------------------
3 // The GSI Online Offline Object Oriented (Go4) Project
4 // Experiment Data Processing at EE department, GSI
5 //-----------------------------------------------------------------------
6 // Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
7 // Planckstr. 1, 64291 Darmstadt, Germany
8 // Contact: http://go4.gsi.de
9 //-----------------------------------------------------------------------
10 // This software can be used under the license agreements as stated
11 // in Go4License.txt file which is part of the distribution.
12 //-----------------------------------------------------------------------
13 
14 #ifndef TGO4EXAMPLECLIENT_H
15 #define TGO4EXAMPLECLIENT_H
16 
17 #include "TGo4ClientTask.h"
18 
19 class TGo4TaskStatus;
21 class TGo4ClientStatus;
22 
30  public:
31 
32  TGo4ExampleClient(const char *name,
33  const char *host = "localhost",
34  UInt_t negport = 0,
35  Bool_t blockingmode = kTRUE);
36 
37  virtual ~TGo4ExampleClient();
38 
40 
41  void Start() override;
42 
43  void Stop() override;
44 
46  static const char *fgcMAINTHREAD;
47 
49  static const char *fgcWATCHTHREAD;
50 
51  protected:
52 
59  void UpdateStatus(TGo4TaskStatus *state) override;
60 
61  public:
68  TGo4TaskStatus *CreateStatus() override;
69 
70  private:
71 
73 
78 
80  TString fcMainName;
81 
83  TString fcWatchName;
84 
85  ClassDefOverride(TGo4ExampleClient,1)
86 };
87 
88 #endif //TGO4EXAMPLECLIENT_H
static const char * fgcWATCHTHREAD
void Start() override
TGo4ExampleApplication * fxApplication
void Stop() override
void UpdateStatus(TGo4TaskStatus *state) override
TGo4TaskStatus * CreateStatus() override
TGo4ExampleApplication * GetApplication()
static const char * fgcMAINTHREAD