GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
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
19class TGo4TaskStatus;
22
28
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
Client status.
TGo4ClientTask(const char *name, const char *serverhost="localhost", UInt_t negotiationport=0, Bool_t blockingmode=kTRUE, Bool_t standalone=kFALSE, Bool_t autostart=kFALSE, Bool_t autocreate=kTRUE, Bool_t ismaster=kFALSE, Bool_t autoconnect=kTRUE)
Example application class; this class may also run as standalone application without the threaded cli...
void Start() override
General start method of client application to be called from remote command; should be re-implemented...
TGo4ExampleClient(const char *name, const char *host="localhost", UInt_t negport=0, Bool_t blockingmode=kTRUE)
static const char * fgcWATCHTHREAD
Suffix for watch thread name.
TString fcWatchName
Remember name of watch thread.
TString fcMainName
Remember name of main thread.
void UpdateStatus(TGo4TaskStatus *state) override
method needed by method CreateStatus of any status subclasses to set the values of the clienttask spe...
TGo4ExampleApplication * fxApplication
aggregationByValue 1 0..1
TGo4TaskStatus * CreateStatus() override
create a status object with information on the current client state.
void Stop() override
General stop method of client application to be called from remote command; should be re-implemented ...
static const char * fgcMAINTHREAD
Suffix for main thread name.
TGo4ExampleApplication * GetApplication()
Task status.