Logo ROOT   6.08/07
Reference Guide
TTreeGeneratorBase.h
Go to the documentation of this file.
1 // @(#)root/treeplayer:$Id$
2 // Author: Akos Hajdu 13/08/2015
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2015, Rene Brun and Fons Rademakers and al. *
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_TTreeGeneratorBase
13 #define ROOT_TTreeGeneratorBase
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // TTreeGeneratorBase //
18 // //
19 // Base class for code generators like TTreeProxyGenerator and //
20 // TTreeReaderGenerator //
21 // //
22 //////////////////////////////////////////////////////////////////////////
23 
24 #ifndef ROOT_Tlist
25 #include "TList.h"
26 #endif
27 #ifndef ROOT_TString
28 #include "TString.h"
29 #endif
30 
31 class TBranch;
32 class TBranchElement;
33 class TClass;
34 class TStreamerElement;
35 class TTree;
37 
38 namespace ROOT {
39 namespace Internal {
41  public:
42  TList fListOfHeaders; // List of included headers
43  TTree *fTree; // Pointer to the tree
44  TString fOptionStr; // User options as a string
45 
46  TTreeGeneratorBase(TTree *tree, const char *option);
47 
48  void AddHeader(TClass *cl);
49  void AddHeader(const char *classname);
53  };
54 }
55 }
56 
57 #endif
This namespace contains pre-defined functions to be used in conjuction with TExecutor::Map and TExecu...
Definition: StringConv.hxx:21
void AddHeader(TClass *cl)
Add a header inclusion request.
Basic string class.
Definition: TString.h:137
bool Bool_t
Definition: RtypesCore.h:59
TString GetContainedClassName(TBranchElement *branch, TStreamerElement *element, Bool_t ispointer)
Get name of class inside a container.
TTreeGeneratorBase(TTree *tree, const char *option)
Constructor.
A doubly linked list.
Definition: TList.h:47
TVirtualStreamerInfo * GetStreamerInfo(TBranch *branch, TIter current, TClass *cl)
Return the correct TStreamerInfo of class 'cl' in the list of branches (current) [Assuming these bran...
The ROOT global object gROOT contains a list of all defined classes.
Definition: TClass.h:81
A Branch for the case of an object.
Definition: tree.py:1
A TTree object has a header with a name and a title.
Definition: TTree.h:98
A TTree is a list of TBranches.
Definition: TBranch.h:58
Abstract Interface class describing Streamer information for one class.
TVirtualStreamerInfo * GetBaseClass(TStreamerElement *element)
Check if element is a base class and if yes, return the base class.