35 fIter = folder->GetListOfFolders()->MakeIterator();
51 return (dynamic_cast<TFolder*>(
fCurrent)!=0) ||
52 (
dynamic_cast<TDirectory*
>(
fCurrent)!=0) ||
53 (
dynamic_cast<TTree*
>(
fCurrent)!=0) ||
54 (
dynamic_cast<TCanvas*
>(
fCurrent)!=0) ||
55 (
dynamic_cast<THStack*
>(
fCurrent)!=0);
60 TTree* tr =
dynamic_cast<TTree*
>(
fCurrent);
62 TDirectory* dir =
dynamic_cast<TDirectory*
>(
fCurrent);
64 TCanvas* canv =
dynamic_cast<TCanvas*
>(
fCurrent);
66 THStack* hs =
dynamic_cast<THStack*
> (
fCurrent);
110 fRootFolderName(rootfolder)
133 slot->
SetPar(
"FolderProxy::RootFolder", foldername);
139 const char* foldername = slot->
GetPar(
"FolderProxy::RootFolder");
151 if (strcmp(rootfolder,
"//root/")==0)
152 res = gROOT->GetRootFolder();
154 res =
dynamic_cast<TFolder*
> (gROOT->GetRootFolder()->FindObject(rootfolder));
162 if (folder==0)
return 0;
165 TFolder* curfold = folder;
166 const char* curname = name;
169 const char* slash = strchr(curname,
'/');
170 UInt_t len = (slash!=0) ? slash - curname : strlen(curname);
171 TIter iter(curfold->GetListOfFolders());
173 while ((obj = iter())!=0)
174 if ((strlen(obj->GetName())==len) &&
175 (strncmp(obj->GetName(), curname, len)==0))
break;
176 if (obj==0)
return 0;
182 TTree* tr =
dynamic_cast<TTree*
> (obj);
186 TDirectory* dir =
dynamic_cast<TDirectory*
> (obj);
190 TCanvas* canv =
dynamic_cast<TCanvas*
> (obj);
194 THStack* hs =
dynamic_cast<THStack*
> (obj);
198 curfold =
dynamic_cast<TFolder*
>(obj);
virtual void ReadData(TGo4Slot *slot, TDirectory *dir)
TGo4FolderLevelIter(TFolder *folder)
static TGo4LevelIter * ProduceIter(TTree *tree)
static TGo4LevelIter * ProduceIter(THStack *canv)
static TGo4Access * CreateAccess(TCanvas *canv, const char *name)
const char * GetPar(const char *name) const
virtual ~TGo4FolderLevelIter()
virtual Bool_t isfolder()
virtual const char * name()
static TGo4LevelIter * ProduceIter(TCanvas *canv)
static TGo4LevelIter * ProduceIter(TDirectory *dir, Bool_t readright)
static TFolder * LocateROOTFolder(const char *rootfolder)
virtual TGo4LevelIter * subiterator()
static TGo4Access * CreateAccess(TFolder *folder, const char *name)
virtual const char * GetContainedClassName()
static TGo4Access * CreateAccess(THStack *canv, const char *name)
virtual const char * GetClassName()
virtual Int_t GetObjectKind()
virtual const char * info()
static TGo4Access * CreateAccess(TTree *tree, const char *name)
virtual ~TGo4FolderProxy()
virtual void WriteData(TGo4Slot *slot, TDirectory *dir, Bool_t onlyobjs)
static TGo4LevelIter * ProduceIter(TFolder *folder)
void SetPar(const char *name, const char *value)
static TGo4Access * CreateAccess(TDirectory *dir, Bool_t readright, const char *name, TGo4Slot *browser_slot=0)