GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
TGo4DabcProxy.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 TGO4DABCPROXY_H
15 #define TGO4DABCPROXY_H
16 
17 #include "TGo4ServerProxy.h"
18 #include "TString.h"
19 
20 class TH1;
21 
23  protected:
24  TString fNodeName;
25  void *fxHierarchy{nullptr};
27 
28  public:
29  TGo4DabcProxy();
30  virtual ~TGo4DabcProxy();
31 
32  Bool_t Connect(const char *nodename);
33  Bool_t UpdateHierarchy(Bool_t sync = kTRUE);
34  Bool_t ReplyCommand(void *cmd);
35 
36  const char *GetServerName() const override { return fNodeName.Data(); }
37 
38  void Initialize(TGo4Slot *slot) override;
39  void Finalize(TGo4Slot *slot) override;
40 
41  Bool_t HasSublevels() const override;
42  std::unique_ptr<TGo4Access> ProvideAccess(const char *name) override;
43  TGo4LevelIter *MakeIter() override;
44 
45  Int_t GetObjectKind() const override { return TGo4Access::kndFolder; }
46  const char *GetContainedClassName() const override { return "TGo4DabcProxy"; }
47  const char *GetContainedObjectInfo() override { return nullptr; }
48  Int_t GetObjectSizeInfo() const override { return -1; }
49 
50  void WriteData(TGo4Slot *slot, TDirectory *dir, Bool_t onlyobjs) override;
51  void ReadData(TGo4Slot *slot, TDirectory *dir) override;
52 
53  void Update(TGo4Slot *slot, Bool_t strong) override;
54 
55  Bool_t RefreshNamesList() override;
56 
57  static const char *GetDabcVersion();
58 
60 };
61 
62 #endif
Bool_t Connect(const char *nodename)
void ReadData(TGo4Slot *slot, TDirectory *dir) override
TGo4LevelIter * MakeIter() override
Bool_t UpdateHierarchy(Bool_t sync=kTRUE)
void * fxHierarchy
Definition: TGo4DabcProxy.h:25
void WriteData(TGo4Slot *slot, TDirectory *dir, Bool_t onlyobjs) override
ClassDefOverride(TGo4DabcProxy, 1)
const char * GetServerName() const override
Definition: TGo4DabcProxy.h:36
Bool_t HasSublevels() const override
void Finalize(TGo4Slot *slot) override
TString fNodeName
Definition: TGo4DabcProxy.h:24
Int_t GetObjectSizeInfo() const override
Definition: TGo4DabcProxy.h:48
const char * GetContainedObjectInfo() override
Definition: TGo4DabcProxy.h:47
Bool_t RefreshNamesList() override
Int_t GetObjectKind() const override
Definition: TGo4DabcProxy.h:45
void Initialize(TGo4Slot *slot) override
virtual ~TGo4DabcProxy()
Bool_t ReplyCommand(void *cmd)
std::unique_ptr< TGo4Access > ProvideAccess(const char *name) override
const char * GetContainedClassName() const override
Definition: TGo4DabcProxy.h:46
static const char * GetDabcVersion()
TGo4Slot * fxParentSlot
pointer on dabc::Hierarchy class
Definition: TGo4DabcProxy.h:26
void Update(TGo4Slot *slot, Bool_t strong) override