Logo ROOT  
Reference Guide
TProofOutputList.h
Go to the documentation of this file.
1// @(#)root/proofplayer:$Id$
2// Author: G. Ganis 04/08/2010
3
4/*************************************************************************
5 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef ROOT_TProofOutputList
13#define ROOT_TProofOutputList
14
15//////////////////////////////////////////////////////////////////////////
16// //
17// TProofList //
18// //
19// Derivation of TList with an overload of ls() and Print() allowing //
20// to filter out some of the variables. //
21// //
22//////////////////////////////////////////////////////////////////////////
23
24#include "TList.h"
25
26class TProofOutputList : public TList {
27
28private:
29 TList *fDontShow; // list of reg expression defining what should not be shown
30
31public:
32 TProofOutputList(const char *dontshow = "PROOF_*");
33TProofOutputList(TObject *o) : TList(o), fDontShow(0) { } // for backward compatibility, don't use
34 virtual ~TProofOutputList();
35
36 void AttachList(TList *alist);
37
38 virtual void ls(Option_t *option="") const ;
39 virtual void Print(Option_t *option="") const;
40 virtual void Print(Option_t *option, Int_t recurse) const
41 { TCollection::Print(option, recurse); }
42 virtual void Print(Option_t *option, const char* wildcard, Int_t recurse=1) const
43 { TCollection::Print(option, wildcard, recurse); }
44 virtual void Print(Option_t *option, TPRegexp& regexp, Int_t recurse=1) const
45 { TCollection::Print(option, regexp, recurse);}
46
48
49 ClassDef(TProofOutputList, 1); // Output list specific TList derivation
50};
51
52#endif
int Int_t
Definition: RtypesCore.h:41
const char Option_t
Definition: RtypesCore.h:62
#define ClassDef(name, id)
Definition: Rtypes.h:326
virtual void Print(Option_t *option="") const
Default print for collections, calls Print(option, 1).
A doubly linked list.
Definition: TList.h:44
Mother of all ROOT objects.
Definition: TObject.h:37
Derivation of TList with an overload of ls() and Print() allowing to filter out some of the variables...
virtual void Print(Option_t *option, TPRegexp &regexp, Int_t recurse=1) const
Print the collection header and its elements that match the regexp.
TProofOutputList(TObject *o)
virtual void Print(Option_t *option, Int_t recurse) const
Print the collection header and its elements.
void AttachList(TList *alist)
Attach to list 'alist'.
TProofOutputList(const char *dontshow="PROOF_*")
Constructor.
TList * GetDontShowList()
virtual void Print(Option_t *option, const char *wildcard, Int_t recurse=1) const
Print the collection header and its elements that match the wildcard.
virtual void Print(Option_t *option="") const
Print the content of the list.
virtual ~TProofOutputList()
Destructor.
virtual void ls(Option_t *option="") const
List the content of the list.