16 #include "Riostream.h"
31 GO4TRACE((15,
"TGo4AnalysisObjectnames::TGo4AnalysisObjectnames(const char*)",__LINE__, __FILE__));
36 GO4TRACE((15,
"TGo4AnalysisObjectnames::~TGo4AnalysisObjectnames()",__LINE__, __FILE__));
46 return dynamic_cast<TList*
> (
fxTopFolder->GetListOfFolders());
61 GO4TRACE((12,
"TGo4AnalysisObjectNames::PrintStatus()",__LINE__, __FILE__));
63 if(buflen<=0 && buffer!=0)
65 gROOT->SetDirLevel(0);
67 Text_t localbuf[64000];
69 Text_t* current=localbuf;
70 Int_t restlen=locallen;
71 current=
PrintBuffer(localbuf,restlen,
"G-OOOO-> Analysis Object Names Printout <-OOOO-G\n");
72 current=
PrintBuffer(current,restlen,
"G-OOOO-> ---------------------------------------------- <-OOOO-G\n");
78 std::cout << localbuf << std::endl;
82 size=locallen-restlen;
85 strncpy(buffer,localbuf,size);
92 GO4TRACE((12,
"TGo4AnalysisObjectNames::PrintFolder()",__LINE__, __FILE__));
94 if(buf!=0 && buflen<=0)
96 std::cout <<
"PrintFolder returns nop" << std::endl;
99 gROOT->IncreaseDirLevel();
100 Int_t locallen=64000;
101 Text_t localbuf[64000];
103 Text_t* current=localbuf;
104 Int_t restlen=locallen;
107 current=
PrintBuffer(current,restlen,
"G-OOOO-> Status Folder %s Printout <-OOOO-G\n", fold->GetName());
109 current=
PrintBuffer(current,restlen,
"G-OOOO-> ---------------------------------------------- <-OOOO-G\n");
113 TIter iter(fold->GetListOfFolders());
116 while((entry=iter()) !=0) {
117 if(entry->InheritsFrom(TFolder::Class()))
120 TFolder* subobj=
dynamic_cast<TFolder*
> (entry);
125 else if (entry->InheritsFrom(TGo4Status::Class()))
139 current=
PrintBuffer(current,restlen,
"G-OOOO-> ---------------------------------------------- <-OOOO-G\n");
144 std::cout << localbuf << std::endl;
148 size=locallen-restlen;
151 strncpy(buf,localbuf,size);
154 gROOT->DecreaseDirLevel();
TGo4AnalysisObjectNames()
virtual Int_t PrintStatus(Text_t *buffer=0, Int_t buflen=0)
static Text_t * PrintIndent(Text_t *buffer, Int_t &buflen)
Int_t PrintFolder(TFolder *fold, Text_t *buf, Int_t buflen=0)
virtual Int_t PrintStatus(Text_t *buffer=0, Int_t buflen=0)
TFolder * GetNamesFolder(Bool_t chown=kFALSE)
virtual ~TGo4AnalysisObjectNames()
static Text_t * PrintBuffer(char *buffer, Int_t &buflen, const char *text,...)