JANA2
C++ framework for multi-threaded data processing
Loading...
Searching...
No Matches
JTablePrinter Class Reference
Collaboration diagram for JTablePrinter:
[legend]

Classes

struct  Column
 

Public Types

enum class  Justify {
  Left ,
  Center ,
  Right
}
 
enum class  RuleStyle {
  Across ,
  Broken ,
  None
}
 

Public Member Functions

JTablePrinter::ColumnAddColumn (std::string header, Justify justify=Justify::Left, int desired_width=0)
 
void FormatLine (std::ostream &os, std::string contents, int max_width, Justify justify) const
 
void Render (std::ostream &os) const
 
std::string Render () const
 
template<typename T >
JTablePrinteroperator| (T)
 
template<>
JTablePrinteroperator| (std::string cell)
 

Static Public Member Functions

static std::vector< std::string > SplitContents (std::string contents, size_t max_width)
 
static std::vector< std::string > SplitContentsByNewlines (std::string contents)
 
static std::vector< std::string > SplitContentsBySpaces (std::string contents, size_t max_width)
 

Public Attributes

std::string title
 
std::vector< Columncolumns
 
RuleStyle top_rule = RuleStyle::Across
 
RuleStyle header_rule = RuleStyle::Broken
 
RuleStyle bottom_rule = RuleStyle::Across
 
int indent = 2
 
int cell_margin = 2
 
bool vertical_padding = 0
 

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