GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
TGo4HServProxy.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 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  void Initialize(TGo4Slot *slot) override;
40  void Finalize(TGo4Slot *slot) override;
41 
42  Bool_t HasSublevels() const override;
43 
44  TGo4LevelIter *MakeIter() override;
45 
46  std::unique_ptr<TGo4Access> ProvideAccess(const char *name) override;
47 
48  void WriteData(TGo4Slot *slot, TDirectory *dir, Bool_t onlyobjs) override;
49  void ReadData(TGo4Slot *slot, TDirectory *dir) override;
50 
51  Int_t GetObjectKind() const override;
52  const char *GetContainedClassName() const override;
53 
54  void Update(TGo4Slot *slot, Bool_t strong) override;
55 
56  const char *GetServerName() const override { return fServerName.Data(); }
57  Bool_t RefreshNamesList() override;
58  TH1 *GetHistogram(const char *remotehistoname);
59 
60  protected:
61 
62  TString fServerName;
63  Int_t fPortNumber{0};
64  TString fBaseName;
65  TString fUserPass;
66  TString fFilter;
67 
68  TGo4Slot *fxStructure{nullptr};
69 
71 };
72 
73 #endif
const char * GetUserPass() const
void Update(TGo4Slot *slot, Bool_t strong) override
Bool_t RefreshNamesList() override
const char * GetContainedClassName() const override
Int_t GetPortNumber() const
void ReadData(TGo4Slot *slot, TDirectory *dir) override
Bool_t HasSublevels() const override
Int_t GetObjectKind() const override
std::unique_ptr< TGo4Access > ProvideAccess(const char *name) override
TGo4LevelIter * MakeIter() override
void Initialize(TGo4Slot *slot) override
const char * GetFilter() const
TH1 * GetHistogram(const char *remotehistoname)
const char * GetBaseName() const
virtual ~TGo4HServProxy()
void SetHServConfig(const char *servername, Int_t portnumber, const char *basename, const char *userpass, const char *filter)
const char * GetServerName() const override
ClassDefOverride(TGo4HServProxy, 1)
TString fServerName
TGo4Slot * fxStructure
void Finalize(TGo4Slot *slot) override
void WriteData(TGo4Slot *slot, TDirectory *dir, Bool_t onlyobjs) override