26 ClassImp(TProofOutputList);
31 TProofOutputList::TProofOutputList(
const char *dontshow) : TList()
33 fDontShow =
new TList();
34 TString regs(dontshow), reg;
36 while (regs.Tokenize(reg, from,
",")) {
37 fDontShow->Add(
new TObjString(reg));
44 TProofOutputList::~TProofOutputList()
46 fDontShow->SetOwner(kTRUE);
47 SafeDelete(fDontShow);
53 void TProofOutputList::AttachList(TList *alist)
57 if (GetSize() > 0) Clear();
61 while ((obj = nxo())) { Add(obj); }
68 void TProofOutputList::ls(Option_t *option)
const
72 if (opt.BeginsWith(
"ALL")) {
76 TIter nxos(fDontShow);
79 doShow.SetOwner(kFALSE);
81 Bool_t hasmissing = kFALSE;
84 while ((obj = nxo())) {
85 TString s = obj->GetName();
86 if (s == kPROOF_MissingFiles) {
87 TList *mf =
dynamic_cast<TList *
> (obj);
88 if (mf && mf->GetSize() > 0) hasmissing = kTRUE;
92 while ((os = (TObjString *) nxos())) {
93 TRegexp rg(os->GetName(), kTRUE);
94 if (s.Index(rg) != kNPOS) {
99 if (doadd) doShow.Add(obj);
105 Printf(
" +++ Missing files list not empty: use ShowMissingFiles to display it +++");
115 void TProofOutputList::Print(Option_t *option)
const
119 if (opt.BeginsWith(
"ALL")) {
123 TIter nxos(fDontShow);
126 doShow.SetOwner(kFALSE);
128 Bool_t hasmissing = kFALSE;
131 while ((obj = nxo())) {
132 TString s = obj->GetName();
133 if (s == kPROOF_MissingFiles) {
134 TList *mf =
dynamic_cast<TList *
> (obj);
135 if (mf && mf->GetSize() > 0) hasmissing = kTRUE;
138 Bool_t doadd = kTRUE;
139 while ((os = (TObjString *) nxos())) {
140 TRegexp rg(os->GetName());
141 if (s.Index(rg) != kNPOS) {;
146 if (doadd) doShow.Add(obj);
149 doShow.Print(option);
152 Printf(
" +++ Missing files list not empty: use ShowMissingFiles to display it +++");