00001 //------------------------------------------------------------- 00002 // Go4 Release Package v3.04-01 (build 30401) 00003 // 28-November-2008 00004 //--------------------------------------------------------------- 00005 // The GSI Online Offline Object Oriented (Go4) Project 00006 // Experiment Data Processing at EE department, GSI 00007 //--------------------------------------------------------------- 00008 // 00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI 00010 // Planckstr. 1, 64291 Darmstadt, Germany 00011 //Contact: http://go4.gsi.de 00012 //---------------------------------------------------------------- 00013 //This software can be used under the license agreements as stated 00014 //in Go4License.txt file which is part of the distribution. 00015 //---------------------------------------------------------------- 00016 #ifndef TGO4HSERVPROXY_H 00017 #define TGO4HSERVPROXY_H 00018 00019 #include "TGo4Proxy.h" 00020 00021 #include "TString.h" 00022 00023 class TH1; 00024 00025 class TGo4HServProxy : public TGo4Proxy { 00026 public: 00027 TGo4HServProxy(); 00028 virtual ~TGo4HServProxy(); 00029 00030 void SetHServConfig(const char* servername, 00031 Int_t portnumber, 00032 const char* basename, 00033 const char* userpass, 00034 const char* filter); 00035 00036 const char* GetServerName() const { return fServerName.Data(); } 00037 Int_t GetPortNumber() const { return fPortNumber; } 00038 const char* GetBaseName() const { return fBaseName.Data(); } 00039 const char* GetUserPass() const { return fUserPass.Data(); } 00040 const char* GetFilter() const { return fFilter.Data(); } 00041 00042 virtual void Initialize(TGo4Slot* slot); 00043 virtual void Finalize(TGo4Slot* slot); 00044 00045 virtual Bool_t HasSublevels() const; 00046 00047 virtual TGo4LevelIter* MakeIter(); 00048 00049 virtual TGo4Access* MakeProxy(const char* name); 00050 00051 virtual void WriteData(TGo4Slot* slot, TDirectory* dir, Bool_t onlyobjs); 00052 virtual void ReadData(TGo4Slot* slot, TDirectory* dir); 00053 00054 virtual Int_t GetObjectKind(); 00055 virtual const char* GetContainedClassName(); 00056 00057 virtual void Update(TGo4Slot* slot, Bool_t strong); 00058 00059 Bool_t RequestHistosList(); 00060 TH1* GetHistogram(const char* remotehistoname); 00061 00062 protected: 00063 00064 TString fServerName; 00065 Int_t fPortNumber; 00066 TString fBaseName; 00067 TString fUserPass; 00068 TString fFilter; 00069 00070 TGo4Slot* fxStructure; 00071 00072 ClassDef(TGo4HServProxy, 1); 00073 }; 00074 00075 #endif 00076 00077 //----------------------------END OF GO4 SOURCE FILE ---------------------