Logo ROOT  
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 #include "TList.h"
25 #include "TString.h"
26 
27 class TBranch;
28 class TBranchElement;
29 class TClass;
30 class TStreamerElement;
31 class TTree;
33 
34 namespace ROOT {
35 namespace Internal {
37  public:
38  TList fListOfHeaders; // List of included headers
39  TTree *fTree; // Pointer to the tree
40  TString fOptionStr; // User options as a string
41 
42  TTreeGeneratorBase(TTree *tree, const char *option);
43 
44  void AddHeader(TClass *cl);
45  void AddHeader(const char *classname);
49  };
50 }
51 }
52 
53 #endif
ROOT::Internal::TTreeGeneratorBase::fListOfHeaders
TList fListOfHeaders
Definition: TTreeGeneratorBase.h:38
ROOT::Internal::TTreeGeneratorBase::GetStreamerInfo
TVirtualStreamerInfo * GetStreamerInfo(TBranch *branch, TIter current, TClass *cl)
Return the correct TStreamerInfo of class 'cl' in the list of branches (current) [Assuming these bran...
Definition: TTreeGeneratorBase.cxx:213
TBranchElement
A Branch for the case of an object.
Definition: TBranchElement.h:39
ROOT::Internal::TTreeGeneratorBase::TTreeGeneratorBase
TTreeGeneratorBase(TTree *tree, const char *option)
Constructor.
Definition: TTreeGeneratorBase.cxx:33
tree
Definition: tree.py:1
ROOT::Internal::TTreeGeneratorBase::fOptionStr
TString fOptionStr
Definition: TTreeGeneratorBase.h:40
TTree
A TTree represents a columnar dataset.
Definition: TTree.h:79
TList.h
TString
Basic string class.
Definition: TString.h:136
TString.h
TVirtualStreamerInfo
Abstract Interface class describing Streamer information for one class.
Definition: TVirtualStreamerInfo.h:37
bool
TBranch
A TTree is a list of TBranches.
Definition: TBranch.h:89
ROOT::Internal::TTreeGeneratorBase
Definition: TTreeGeneratorBase.h:36
ROOT::Internal::TTreeGeneratorBase::GetBaseClass
TVirtualStreamerInfo * GetBaseClass(TStreamerElement *element)
Check if element is a base class and if yes, return the base class.
Definition: TTreeGeneratorBase.cxx:198
ROOT::Internal::TTreeGeneratorBase::GetContainedClassName
TString GetContainedClassName(TBranchElement *branch, TStreamerElement *element, Bool_t ispointer)
Get name of class inside a container.
Definition: TTreeGeneratorBase.cxx:153
TClass
TClass instances represent classes, structs and namespaces in the ROOT type system.
Definition: TClass.h:80
TIter
Definition: TCollection.h:233
ROOT::Internal::TTreeGeneratorBase::AddHeader
void AddHeader(TClass *cl)
Add a header inclusion request.
Definition: TTreeGeneratorBase.cxx:39
ROOT
VSD Structures.
Definition: StringConv.hxx:21
TStreamerElement
Definition: TStreamerElement.h:33
TList
A doubly linked list.
Definition: TList.h:44
ROOT::Internal::TTreeGeneratorBase::fTree
TTree * fTree
Definition: TTreeGeneratorBase.h:39