00001 // $Id: TGo4FolderProxy.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 TGO4FOLDERPROXY_H 00015 #define TGO4FOLDERPROXY_H 00016 00017 #include "TGo4Proxy.h" 00018 00019 #include "TFolder.h" 00020 #include "TString.h" 00021 00022 class TGo4FolderProxy : public TGo4Proxy { 00023 public: 00024 TGo4FolderProxy(); 00025 TGo4FolderProxy(TFolder* f, Bool_t owner = kFALSE, const char* roofolder = ""); 00026 virtual ~TGo4FolderProxy(); 00027 00028 virtual Bool_t HasSublevels() const { return fFolder!=0; } 00029 00030 virtual TGo4LevelIter* MakeIter() 00031 { return (fFolder==0) ? 0 : ProduceIter(fFolder); } 00032 00033 virtual TGo4Access* MakeProxy(const char* name) 00034 { return ProduceProxy(fFolder, name); } 00035 00036 virtual void WriteData(TGo4Slot* slot, TDirectory* dir, Bool_t onlyobjs); 00037 virtual void ReadData(TGo4Slot* slot, TDirectory* dir); 00038 00039 virtual Int_t GetObjectKind(); 00040 virtual const char* GetContainedClassName(); 00041 00042 static TFolder* LocateROOTFolder(const char* rootfolder); 00043 static TGo4Access* ProduceProxy(TFolder* folder, const char* name); 00044 static TGo4LevelIter* ProduceIter(TFolder* folder); 00045 00046 protected: 00047 TFolder* fFolder; 00048 Bool_t fOwner; 00049 TString fRootFolderName; 00050 00051 ClassDef(TGo4FolderProxy, 1); 00052 }; 00053 00054 #endif 00055