00001 // $Id: TGo4DabcProxy.h 1032 2013-11-05 15:02:08Z linev $ 00002 //----------------------------------------------------------------------- 00003 // The GSI Online Offline Object Oriented (Go4) Project 00004 // Experiment Data Processing at EE department, GSI 00005 //----------------------------------------------------------------------- 00006 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH 00007 // Planckstr. 1, 64291 Darmstadt, Germany 00008 // Contact: http://go4.gsi.de 00009 //----------------------------------------------------------------------- 00010 // This software can be used under the license agreements as stated 00011 // in Go4License.txt file which is part of the distribution. 00012 //----------------------------------------------------------------------- 00013 00014 #ifndef TGO4DABCPROXY_H 00015 #define TGO4DABCPROXY_H 00016 00017 #include "TGo4Proxy.h" 00018 #include "TString.h" 00019 00020 class TH1; 00021 00022 class TGo4DabcProxy : public TGo4Proxy { 00023 protected: 00024 TString fNodeName; 00025 void* fxHierarchy; 00026 TGo4Slot* fxParentSlot; 00027 00028 public: 00029 TGo4DabcProxy(); 00030 virtual ~TGo4DabcProxy(); 00031 00032 Bool_t Connect(const char* nodename); 00033 Bool_t UpdateHierarchy(Bool_t sync = kTRUE); 00034 Bool_t ReplyCommand(void* cmd); 00035 00036 const char* GetServerName() const { return fNodeName.Data(); } 00037 00038 virtual void Initialize(TGo4Slot* slot); 00039 virtual void Finalize(TGo4Slot* slot); 00040 00041 virtual Bool_t HasSublevels() const; 00042 virtual TGo4Access* MakeProxy(const char* name); 00043 virtual TGo4LevelIter* MakeIter(); 00044 00045 virtual Int_t GetObjectKind() { return TGo4Access::kndFolder; } 00046 virtual const char* GetContainedClassName() { return "TGo4DabcProxy"; } 00047 virtual const char* GetContainedObjectInfo() { return 0; } 00048 virtual Int_t GetObjectSizeInfo() { return -1; } 00049 00050 virtual void WriteData(TGo4Slot* slot, TDirectory* dir, Bool_t onlyobjs); 00051 virtual void ReadData(TGo4Slot* slot, TDirectory* dir); 00052 00053 virtual void Update(TGo4Slot* slot, Bool_t strong); 00054 00055 void RefreshNamesList(); 00056 00057 static const char* GetDabcVersion(); 00058 00059 ClassDef(TGo4DabcProxy, 1); 00060 }; 00061 00062 #endif