00001 // $Id: TGo4TreeStructure.cxx 999 2013-07-25 11:58:59Z 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 #include "TGo4TreeStructure.h" 00015 00016 #include "TList.h" 00017 00018 #include "TGo4Log.h" 00019 00020 TGo4TreeStructure::TGo4TreeStructure() : 00021 TGo4Status(), 00022 fxTopFolder(0) 00023 { 00024 } 00025 00026 TGo4TreeStructure::TGo4TreeStructure(const char* name) : 00027 TGo4Status(name), 00028 fxTopFolder(0) 00029 { 00030 GO4TRACE((15,"TGo4TreeStructure::TGo4TreeStructure(const char*)",__LINE__, __FILE__)); 00031 } 00032 00033 TGo4TreeStructure::~TGo4TreeStructure() 00034 { 00035 GO4TRACE((15,"TGo4TreeStructure::~TGo4TreeStructure()",__LINE__, __FILE__)); 00036 delete fxTopFolder; 00037 } 00038 00039 TList* TGo4TreeStructure::GetFolderList() 00040 { 00041 return (fxTopFolder==0) ? 0 : dynamic_cast<TList*> (fxTopFolder->GetListOfFolders()); 00042 } 00043 00044 TFolder* TGo4TreeStructure::GetNamesFolder(Bool_t chown) 00045 { 00046 TFolder* reval=fxTopFolder; 00047 if(chown) fxTopFolder=0; 00048 return reval; 00049 }