00001 // $Id: TGo4HServProxy.h 478 2009-10-29 12:26:09Z 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 TGO4HSERVPROXY_H 00015 #define TGO4HSERVPROXY_H 00016 00017 #include "TGo4Proxy.h" 00018 00019 #include "TString.h" 00020 00021 class TH1; 00022 00023 class TGo4HServProxy : public TGo4Proxy { 00024 public: 00025 TGo4HServProxy(); 00026 virtual ~TGo4HServProxy(); 00027 00028 void SetHServConfig(const char* servername, 00029 Int_t portnumber, 00030 const char* basename, 00031 const char* userpass, 00032 const char* filter); 00033 00034 const char* GetServerName() const { return fServerName.Data(); } 00035 Int_t GetPortNumber() const { return fPortNumber; } 00036 const char* GetBaseName() const { return fBaseName.Data(); } 00037 const char* GetUserPass() const { return fUserPass.Data(); } 00038 const char* GetFilter() const { return fFilter.Data(); } 00039 00040 virtual void Initialize(TGo4Slot* slot); 00041 virtual void Finalize(TGo4Slot* slot); 00042 00043 virtual Bool_t HasSublevels() const; 00044 00045 virtual TGo4LevelIter* MakeIter(); 00046 00047 virtual TGo4Access* MakeProxy(const char* name); 00048 00049 virtual void WriteData(TGo4Slot* slot, TDirectory* dir, Bool_t onlyobjs); 00050 virtual void ReadData(TGo4Slot* slot, TDirectory* dir); 00051 00052 virtual Int_t GetObjectKind(); 00053 virtual const char* GetContainedClassName(); 00054 00055 virtual void Update(TGo4Slot* slot, Bool_t strong); 00056 00057 Bool_t RequestHistosList(); 00058 TH1* GetHistogram(const char* remotehistoname); 00059 00060 protected: 00061 00062 TString fServerName; 00063 Int_t fPortNumber; 00064 TString fBaseName; 00065 TString fUserPass; 00066 TString fFilter; 00067 00068 TGo4Slot* fxStructure; 00069 00070 ClassDef(TGo4HServProxy, 1); 00071 }; 00072 00073 #endif