Contains settings for printing and prints a summary of an RField instance.
Instances of this class are currently only invoked by RNTupleReader::Print() -> RFieldBase::AcceptVisitor()
Definition at line 77 of file RFieldVisitor.hxx.
Public Member Functions | |
RPrintVisitor (std::ostream &out=std::cout, char fillSymbol=' *', int width=80, int deepestLevel=1, int numFields=1) | |
void | SetAvailableSpaceForStrings () |
Computes how many characters should be placed between the frame symbol and ':' for left and right side of ':' for visually pleasing output. More... | |
void | SetDeepestLevel (int d) |
void | SetFrameSymbol (char s) |
void | SetNumFields (int n) |
void | SetWidth (int w) |
void | VisitField (const Detail::RFieldBase &field, int level) final |
Prints summary of Field. More... | |
void | VisitRootField (const RFieldRoot &, int) final |
virtual void | VisitField (const Detail::RFieldBase &field, int level)=0 |
virtual void | VisitRootField (const RFieldRoot &field, int level)=0 |
Private Member Functions | |
std::string | MakeKeyString (const Detail::RFieldBase &field, int level) |
KeyString refers to the left side containing the word "Field" and its hierarchial order. More... | |
std::string | MakeValueString (const Detail::RFieldBase &field) |
ValueString refers to the right side containing the type and name. More... | |
Private Attributes | |
int | fAvailableSpaceKeyString |
int | fAvailableSpaceValueString |
int | fDeepestLevel |
std::vector< bool > | fFlagForVerticalLines |
Keeps track when | is used for the tree-like structure. More... | |
char | fFrameSymbol |
int | fNumFields |
std::ostream & | fOutput |
Where to write the printout to. More... | |
int | fWidth |
Indicates maximal number of allowed characters per line. More... | |
#include <ROOT/RFieldVisitor.hxx>
|
inline |
Definition at line 102 of file RFieldVisitor.hxx.
|
private |
KeyString refers to the left side containing the word "Field" and its hierarchial order.
Definition at line 40 of file RFieldVisitor.cxx.
|
private |
ValueString refers to the right side containing the type and name.
Definition at line 64 of file RFieldVisitor.cxx.
|
inline |
Computes how many characters should be placed between the frame symbol and ':' for left and right side of ':' for visually pleasing output.
Definition at line 124 of file RFieldVisitor.hxx.
void ROOT::Experimental::RPrintVisitor::SetDeepestLevel | ( | int | d | ) |
Definition at line 30 of file RFieldVisitor.cxx.
|
inline |
Definition at line 108 of file RFieldVisitor.hxx.
void ROOT::Experimental::RPrintVisitor::SetNumFields | ( | int | n | ) |
Definition at line 35 of file RFieldVisitor.cxx.
|
inline |
Definition at line 109 of file RFieldVisitor.hxx.
|
finalvirtual |
Prints summary of Field.
Implements ROOT::Experimental::Detail::RNTupleVisitor.
Definition at line 71 of file RFieldVisitor.cxx.
|
inlinefinalvirtual |
Implements ROOT::Experimental::Detail::RNTupleVisitor.
Definition at line 107 of file RFieldVisitor.hxx.
|
private |
Definition at line 86 of file RFieldVisitor.hxx.
|
private |
Definition at line 87 of file RFieldVisitor.hxx.
|
private |
Definition at line 84 of file RFieldVisitor.hxx.
|
private |
Keeps track when | is used for the tree-like structure.
Definition at line 96 of file RFieldVisitor.hxx.
|
private |
Definition at line 81 of file RFieldVisitor.hxx.
|
private |
Definition at line 85 of file RFieldVisitor.hxx.
|
private |
Where to write the printout to.
Definition at line 80 of file RFieldVisitor.hxx.
|
private |
Indicates maximal number of allowed characters per line.
Definition at line 83 of file RFieldVisitor.hxx.