Pandora
Pandora source code navigator
Loading...
Searching...
No Matches
lar_content::LArFormattingHelper Class Reference

LArFormattingHelper class. More...

#include "LArFormattingHelper.h"

Classes

class  Table
 Table class. More...
 

Public Types

enum  Style : unsigned int {
  REGULAR = 0 , BOLD = 1 , DIM = 2 , UNDERLINED = 4 ,
  INVERTED = 7
}
 Style code enumeration. More...
 
enum  Color : unsigned int {
  DEFAULT = 39 , BLACK = 30 , RED = 31 , GREEN = 32 ,
  YELLOW = 33 , BLUE = 34 , MAGENTA = 35 , CYAN = 36 ,
  LIGHT_GRAY = 37 , DARK_GRAY = 90 , LIGHT_RED = 91 , LIGHT_GREEN = 92 ,
  LIGHT_YELLOW = 93 , LIGHT_BLUE = 94 , LIGHT_MAGENTA = 95 , LIGHT_CYAN = 96 ,
  WHITE = 97
}
 Style code enumeration. More...
 

Static Public Member Functions

static void SetStyle (const Style style, std::ostream &stream=std::cout)
 Set the format style (to standard output stream)
 
static void SetColor (const Color color, std::ostream &stream=std::cout)
 Set the text color (of standard output stream)
 
static void ResetStyle (std::ostream &stream=std::cout)
 Reset the style of the standard output stream.
 
static void ResetColor (std::ostream &stream=std::cout)
 Reset the text color of the standard output stream.
 
static void Reset (std::ostream &stream=std::cout)
 Reset the formatting and text color of the standard output stream.
 
static void PrintFormatCharacter (const unsigned int code, std::ostream &stream=std::cout)
 Print a formatting character to the standard output stream.
 
static std::string GetFormatCharacter (const unsigned int code)
 Get a formatting character.
 
static void PrintHeader (const std::string &title="", const unsigned int width=140)
 Print a header line of a given width.
 
static void PrintRule (const unsigned int width=140)
 Print a horizontal rule.
 

Detailed Description

LArFormattingHelper class.

Definition at line 25 of file LArFormattingHelper.h.

Member Enumeration Documentation

◆ Color

Style code enumeration.

Enumerator
DEFAULT 
BLACK 
RED 
GREEN 
YELLOW 
BLUE 
MAGENTA 
CYAN 
LIGHT_GRAY 
DARK_GRAY 
LIGHT_RED 
LIGHT_GREEN 
LIGHT_YELLOW 
LIGHT_BLUE 
LIGHT_MAGENTA 
LIGHT_CYAN 
WHITE 

Definition at line 104 of file LArFormattingHelper.h.

◆ Style

Style code enumeration.

Enumerator
REGULAR 
BOLD 
DIM 
UNDERLINED 
INVERTED 

Definition at line 92 of file LArFormattingHelper.h.

Member Function Documentation

◆ GetFormatCharacter()

std::string lar_content::LArFormattingHelper::GetFormatCharacter ( const unsigned int  code)
static

Get a formatting character.

Parameters
codethe formatting code to output

Definition at line 62 of file LArFormattingHelper.cc.

Here is the caller graph for this function:

◆ PrintFormatCharacter()

void lar_content::LArFormattingHelper::PrintFormatCharacter ( const unsigned int  code,
std::ostream &  stream = std::cout 
)
static

Print a formatting character to the standard output stream.

Parameters
codethe formatting code to output

Definition at line 54 of file LArFormattingHelper.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PrintHeader()

void lar_content::LArFormattingHelper::PrintHeader ( const std::string &  title = "",
const unsigned int  width = 140 
)
static

Print a header line of a given width.

Parameters
titlethe title of the header
widththe width of the header line

Definition at line 71 of file LArFormattingHelper.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PrintRule()

void lar_content::LArFormattingHelper::PrintRule ( const unsigned int  width = 140)
static

Print a horizontal rule.

Parameters
widththe width of the rule line

Definition at line 80 of file LArFormattingHelper.cc.

Here is the call graph for this function:

◆ Reset()

void lar_content::LArFormattingHelper::Reset ( std::ostream &  stream = std::cout)
static

Reset the formatting and text color of the standard output stream.

Definition at line 46 of file LArFormattingHelper.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ResetColor()

void lar_content::LArFormattingHelper::ResetColor ( std::ostream &  stream = std::cout)
static

Reset the text color of the standard output stream.

Definition at line 39 of file LArFormattingHelper.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ResetStyle()

void lar_content::LArFormattingHelper::ResetStyle ( std::ostream &  stream = std::cout)
static

Reset the style of the standard output stream.

Definition at line 32 of file LArFormattingHelper.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetColor()

void lar_content::LArFormattingHelper::SetColor ( const Color  color,
std::ostream &  stream = std::cout 
)
static

Set the text color (of standard output stream)

Parameters
colorthe color of choice

Definition at line 25 of file LArFormattingHelper.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetStyle()

void lar_content::LArFormattingHelper::SetStyle ( const Style  style,
std::ostream &  stream = std::cout 
)
static

Set the format style (to standard output stream)

Parameters
stylethe style of choice

Definition at line 18 of file LArFormattingHelper.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

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