16#ifndef ROOT7_RFieldVisitor
17#define ROOT7_RFieldVisitor
26namespace Experimental {
102 RPrintVisitor(std::ostream &out = std::cout,
char fillSymbol =
'*',
int width = 80,
int deepestLevel = 1,
int numFields = 1)
142 static std::string
FitString(
const std::string &str,
int availableSpace);
include TDocParser_001 C image html pict1_TDocParser_001 png width
Abstract base class for classes implementing the visitor design pattern.
virtual void VisitField(const Detail::RFieldBase &field, int level)=0
virtual void VisitRootField(const RFieldRoot &field, int level)=0
A field translates read and write calls from/to underlying columns to/from tree values.
The container field for an ntuple model, which itself has no physical representation.
Visitor used for a prepare run to collect information needed by another visitor class.
int GetDeepestLevel() const
RPrepareVisitor(int deepestLevel=0, int numFields=0)
void VisitRootField(const RFieldRoot &, int) final
void VisitField(const Detail::RFieldBase &field, int level) final
Contains settings for printing and prints a summary of an RField instance.
RPrintVisitor(std::ostream &out=std::cout, char fillSymbol=' *', int width=80, int deepestLevel=1, int numFields=1)
int fWidth
Indicates maximal number of allowed characters per line.
std::vector< bool > fFlagForVerticalLines
Keeps track when | is used for the tree-like structure.
void SetAvailableSpaceForStrings()
Computes how many characters should be placed between the frame symbol and ':' for left and right sid...
std::ostream & fOutput
Where to write the printout to.
void VisitRootField(const RFieldRoot &, int) final
void SetDeepestLevel(int d)
std::string MakeValueString(const Detail::RFieldBase &field)
ValueString refers to the right side containing the type and name.
void VisitField(const Detail::RFieldBase &field, int level) final
Prints summary of Field.
int fAvailableSpaceKeyString
void SetFrameSymbol(char s)
int fAvailableSpaceValueString
std::string MakeKeyString(const Detail::RFieldBase &field, int level)
KeyString refers to the left side containing the word "Field" and its hierarchial order.
static constexpr double s