GSI Object Oriented Online Offline (Go4)  GO4-6.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4HServProxy.h
Go to the documentation of this file.
1 // $Id: TGo4HServProxy.h 2627 2019-10-01 08:02:45Z linev $
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 TGO4HSERVPROXY_H
15 #define TGO4HSERVPROXY_H
16 
17 #include "TGo4ServerProxy.h"
18 
19 #include "TString.h"
20 
21 class TH1;
22 
24  public:
26  virtual ~TGo4HServProxy();
27 
28  void SetHServConfig(const char* servername,
29  Int_t portnumber,
30  const char* basename,
31  const char* userpass,
32  const char* filter);
33 
34  Int_t GetPortNumber() const { return fPortNumber; }
35  const char* GetBaseName() const { return fBaseName.Data(); }
36  const char* GetUserPass() const { return fUserPass.Data(); }
37  const char* GetFilter() const { return fFilter.Data(); }
38 
39  virtual void Initialize(TGo4Slot* slot);
40  virtual void Finalize(TGo4Slot* slot);
41 
42  virtual Bool_t HasSublevels() const;
43 
44  virtual TGo4LevelIter* MakeIter();
45 
46  virtual TGo4Access* ProvideAccess(const char* name);
47 
48  virtual void WriteData(TGo4Slot* slot, TDirectory* dir, Bool_t onlyobjs);
49  virtual void ReadData(TGo4Slot* slot, TDirectory* dir);
50 
51  virtual Int_t GetObjectKind();
52  virtual const char* GetContainedClassName();
53 
54  virtual void Update(TGo4Slot* slot, Bool_t strong);
55 
56  virtual const char* GetServerName() const { return fServerName.Data(); }
57  virtual Bool_t RefreshNamesList();
58  TH1* GetHistogram(const char* remotehistoname);
59 
60  protected:
61 
62  TString fServerName;
63  Int_t fPortNumber;
64  TString fBaseName;
65  TString fUserPass;
66  TString fFilter;
67 
69 
71 };
72 
73 #endif
virtual void Initialize(TGo4Slot *slot)
virtual Bool_t HasSublevels() const
virtual TGo4LevelIter * MakeIter()
virtual void Update(TGo4Slot *slot, Bool_t strong)
virtual const char * GetContainedClassName()
virtual Bool_t RefreshNamesList()
ClassDef(TGo4HServProxy, 1)
virtual void Finalize(TGo4Slot *slot)
virtual TGo4Access * ProvideAccess(const char *name)
Int_t GetPortNumber() const
TH1 * GetHistogram(const char *remotehistoname)
virtual ~TGo4HServProxy()
void SetHServConfig(const char *servername, Int_t portnumber, const char *basename, const char *userpass, const char *filter)
const char * GetFilter() const
virtual Int_t GetObjectKind()
TString fServerName
virtual const char * GetServerName() const
const char * GetUserPass() const
const char * GetBaseName() const
TGo4Slot * fxStructure
virtual void WriteData(TGo4Slot *slot, TDirectory *dir, Bool_t onlyobjs)
virtual void ReadData(TGo4Slot *slot, TDirectory *dir)