LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
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 | |
enum Color unsigned int enum static Style unsigned int void | SetStyle (const Style style, std::ostream &stream=std::cout) |
Set the format style (to standard output stream) More... | |
static void | SetColor (const Color color, std::ostream &stream=std::cout) |
Set the text color (of standard output stream) More... | |
static void | ResetStyle (std::ostream &stream=std::cout) |
Reset the style of the standard output stream. More... | |
static void | ResetColor (std::ostream &stream=std::cout) |
Reset the text color of the standard output stream. More... | |
static void | Reset (std::ostream &stream=std::cout) |
Reset the formatting and text color of the standard output stream. More... | |
static void | PrintFormatCharacter (const unsigned int code, std::ostream &stream=std::cout) |
Print a formatting character to the standard output stream. More... | |
static std::string | GetFormatCharacter (const unsigned int code) |
Get a formatting character. More... | |
static void | PrintHeader (const std::string &title="", const unsigned int width=140) |
Print a header line of a given width. More... | |
static void | PrintRule (const unsigned int width=140) |
Print a horizontal rule. More... | |
LArFormattingHelper class.
Definition at line 25 of file LArFormattingHelper.h.
enum lar_content::LArFormattingHelper::Color : unsigned int |
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.
enum lar_content::LArFormattingHelper::Style : unsigned int |
Style code enumeration.
Enumerator | |
---|---|
REGULAR | |
BOLD | |
DIM | |
UNDERLINED | |
INVERTED |
Definition at line 92 of file LArFormattingHelper.h.
|
static |
Get a formatting character.
code | the formatting code to output |
Definition at line 62 of file LArFormattingHelper.cc.
References util::to_string().
Referenced by lar_content::LArFormattingHelper::Table::AddElement(), lar_content::LArFormattingHelper::Table::PrintColumnTitles(), and lar_content::LArFormattingHelper::Table::PrintHorizontalLine().
|
static |
Print a formatting character to the standard output stream.
code | the formatting code to output |
Definition at line 54 of file LArFormattingHelper.cc.
|
static |
Print a header line of a given width.
title | the title of the header |
width | the width of the header line |
Definition at line 71 of file LArFormattingHelper.cc.
References Reset(), and SetStyle().
Referenced by lar_content::CosmicRayTaggingMonitoringTool::FindAmbiguousPfos(), and lar_content::PfoValidationAlgorithm::Run().
|
static |
Print a horizontal rule.
width | the width of the rule line |
Definition at line 80 of file LArFormattingHelper.cc.
|
static |
Reset the formatting and text color of the standard output stream.
Definition at line 46 of file LArFormattingHelper.cc.
|
static |
Reset the text color of the standard output stream.
Definition at line 39 of file LArFormattingHelper.cc.
|
static |
Reset the style of the standard output stream.
Definition at line 32 of file LArFormattingHelper.cc.
References SetStyle().
Referenced by lar_content::LArFormattingHelper::Table::PrintTableCell().
|
static |
Set the text color (of standard output stream)
color | the color of choice |
Definition at line 25 of file LArFormattingHelper.cc.
|
static |
Set the format style (to standard output stream)
style | the style of choice |
Definition at line 18 of file LArFormattingHelper.cc.