Logo ROOT  
Reference Guide
ROOT::Experimental::RPrintVisitor Class Reference

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>

Inheritance diagram for ROOT::Experimental::RPrintVisitor:
[legend]

Constructor & Destructor Documentation

◆ RPrintVisitor()

ROOT::Experimental::RPrintVisitor::RPrintVisitor ( std::ostream &  out = std::cout,
char  fillSymbol = '*',
int  width = 80,
int  deepestLevel = 1,
int  numFields = 1 
)
inline

Definition at line 102 of file RFieldVisitor.hxx.

Member Function Documentation

◆ MakeKeyString()

std::string ROOT::Experimental::RPrintVisitor::MakeKeyString ( const Detail::RFieldBase field,
int  level 
)
private

KeyString refers to the left side containing the word "Field" and its hierarchial order.

Definition at line 40 of file RFieldVisitor.cxx.

◆ MakeValueString()

std::string ROOT::Experimental::RPrintVisitor::MakeValueString ( const Detail::RFieldBase field)
private

ValueString refers to the right side containing the type and name.

Definition at line 64 of file RFieldVisitor.cxx.

◆ SetAvailableSpaceForStrings()

void ROOT::Experimental::RPrintVisitor::SetAvailableSpaceForStrings ( )
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.

◆ SetDeepestLevel()

void ROOT::Experimental::RPrintVisitor::SetDeepestLevel ( int  d)

Definition at line 30 of file RFieldVisitor.cxx.

◆ SetFrameSymbol()

void ROOT::Experimental::RPrintVisitor::SetFrameSymbol ( char  s)
inline

Definition at line 108 of file RFieldVisitor.hxx.

◆ SetNumFields()

void ROOT::Experimental::RPrintVisitor::SetNumFields ( int  n)

Definition at line 35 of file RFieldVisitor.cxx.

◆ SetWidth()

void ROOT::Experimental::RPrintVisitor::SetWidth ( int  w)
inline

Definition at line 109 of file RFieldVisitor.hxx.

◆ VisitField()

void ROOT::Experimental::RPrintVisitor::VisitField ( const Detail::RFieldBase field,
int  level 
)
finalvirtual

Prints summary of Field.

Implements ROOT::Experimental::Detail::RNTupleVisitor.

Definition at line 71 of file RFieldVisitor.cxx.

◆ VisitRootField()

void ROOT::Experimental::RPrintVisitor::VisitRootField ( const RFieldRoot ,
int   
)
inlinefinalvirtual

Implements ROOT::Experimental::Detail::RNTupleVisitor.

Definition at line 107 of file RFieldVisitor.hxx.

Member Data Documentation

◆ fAvailableSpaceKeyString

int ROOT::Experimental::RPrintVisitor::fAvailableSpaceKeyString
private

Definition at line 86 of file RFieldVisitor.hxx.

◆ fAvailableSpaceValueString

int ROOT::Experimental::RPrintVisitor::fAvailableSpaceValueString
private

Definition at line 87 of file RFieldVisitor.hxx.

◆ fDeepestLevel

int ROOT::Experimental::RPrintVisitor::fDeepestLevel
private

Definition at line 84 of file RFieldVisitor.hxx.

◆ fFlagForVerticalLines

std::vector<bool> ROOT::Experimental::RPrintVisitor::fFlagForVerticalLines
private

Keeps track when | is used for the tree-like structure.

Definition at line 96 of file RFieldVisitor.hxx.

◆ fFrameSymbol

char ROOT::Experimental::RPrintVisitor::fFrameSymbol
private

Definition at line 81 of file RFieldVisitor.hxx.

◆ fNumFields

int ROOT::Experimental::RPrintVisitor::fNumFields
private

Definition at line 85 of file RFieldVisitor.hxx.

◆ fOutput

std::ostream& ROOT::Experimental::RPrintVisitor::fOutput
private

Where to write the printout to.

Definition at line 80 of file RFieldVisitor.hxx.

◆ fWidth

int ROOT::Experimental::RPrintVisitor::fWidth
private

Indicates maximal number of allowed characters per line.

Definition at line 83 of file RFieldVisitor.hxx.

Libraries for ROOT::Experimental::RPrintVisitor:
[legend]

The documentation for this class was generated from the following files: