Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
Hal::Cout Class Reference
Inheritance diagram for Hal::Cout:

Static Public Member Functions

static TString GetDisableColor ()
 
static TString GetColor (Color_t Color)
 
static CoutInstance ()
 
static void SetLineLenght (Int_t lenght)
 
static void SetVerboseMode (Hal::EInfo verbose)
 
static void Database (Int_t no...)
 
static void Database (std::initializer_list< TString > list)
 
static void Database (const std::vector< TString > &list)
 
static void ShiftDatabase (Int_t shift, Int_t no...)
 
static void InStars (TString text, Color_t color=-1)
 
static void ShiftInStars (Int_t shift, TString text, Color_t color=-1)
 
static void Text (TString text, TString option="L", Color_t color=-1)
 
static void Stars (Color_t color=-1)
 
static void ShiftText (Int_t shift, TString text, TString option, Color_t color=-1)
 
static void Empty (Color_t color=-1)
 
static void Percent (Double_t actual, Double_t total)
 
static void ProgressBar (Double_t acutal, Double_t total)
 
static void PrintInfo (TString text, Hal::EInfo status)
 
static void FailSucced (TString value, TString flag, Color_t color)
 
static void DebugInfo (Int_t i)
 
static void DebugInfo (TString file, Int_t i)
 
static Hal::EInfo GetVerboseMode ()
 
static void PrintLineFileInfo (TString file, Int_t line, TString text, Hal::EInfo flag=Hal::EInfo::kDebugInfo)
 

Detailed Description

Definition at line 21 of file Cout.h.

Constructor & Destructor Documentation

◆ Cout()

Hal::Cout::Cout ( )

Definition at line 392 of file Cout.cxx.

◆ ~Cout()

Hal::Cout::~Cout ( )
virtual

Definition at line 405 of file Cout.cxx.

Member Function Documentation

◆ Database() [1/3]

void Hal::Cout::Database ( const std::vector< TString > & list)
static

print strings in database format

Parameters
list

Definition at line 54 of file Cout.cxx.

◆ Database() [2/3]

static void Hal::Cout::Database ( Int_t no...)
static

print strings in database format

Parameters
nonumber of columns

◆ Database() [3/3]

void Hal::Cout::Database ( std::initializer_list< TString > list)
static

print strings in database format

Parameters
listof strings to print

Definition at line 49 of file Cout.cxx.

◆ DebugInfo() [1/2]

void Hal::Cout::DebugInfo ( Int_t i)
static

print number if violet color

Parameters
ivalue

Definition at line 249 of file Cout.cxx.

◆ DebugInfo() [2/2]

void Hal::Cout::DebugInfo ( TString file,
Int_t i )
static

print number if violet color

Parameters
file- name of the file (use FILE)
ivalue (LINE)

Definition at line 255 of file Cout.cxx.

◆ Empty()

void Hal::Cout::Empty ( Color_t color = -1)
static

print "empty" line

Parameters
colorcolor

Definition at line 207 of file Cout.cxx.

◆ FailSucced()

void Hal::Cout::FailSucced ( TString value,
TString flag,
Color_t color )
static

print line "fail/succeed"

Parameters
valuedesrcription of problem
flagstatus of proglem
colorcolor of status (description is in white)

Definition at line 382 of file Cout.cxx.

◆ GetColor()

TString Hal::Cout::GetColor ( Color_t Color)
static
Parameters
Color
Returns
flag to enable given color in linux

Definition at line 268 of file Cout.cxx.

◆ GetDisableColor()

TString Hal::Cout::GetDisableColor ( )
static

return flag for disabling color in linux

Returns

Definition at line 261 of file Cout.cxx.

◆ GetVerboseMode()

static Hal::EInfo Hal::Cout::GetVerboseMode ( )
inlinestatic
Returns
verbolse mode

Definition at line 165 of file Cout.h.

◆ Instance()

Cout * Hal::Cout::Instance ( )
static
Returns
instance of this class

Definition at line 400 of file Cout.cxx.

◆ InStars()

void Hal::Cout::InStars ( TString text,
Color_t color = -1 )
static

print text in stars

Parameters
texttext to print
colorcolor of text (one of : kGray, kOrange, kYellow, kBlue, kCyan,kWhite, kGreen, kViolet)

Definition at line 77 of file Cout.cxx.

◆ Percent()

void Hal::Cout::Percent ( Double_t actual,
Double_t total )
static

print percentage value by taking two parameters

Parameters
actualactual value
totaltotal value

Definition at line 219 of file Cout.cxx.

◆ PrintInfo()

void Hal::Cout::PrintInfo ( TString text,
Hal::EInfo status )
static

print info, basic method for printing info in code, use verbose value to remove texts with low prioryty

Parameters
texttext
statusstatsu of text

Definition at line 370 of file Cout.cxx.

◆ PrintLineFileInfo()

void Hal::Cout::PrintLineFileInfo ( TString file,
Int_t line,
TString text,
Hal::EInfo flag = Hal::EInfo::kDebugInfo )
static

used by macro HalCoutDebug2

Parameters
file
line
text
flag

Definition at line 407 of file Cout.cxx.

◆ ProgressBar()

void Hal::Cout::ProgressBar ( Double_t acutal,
Double_t total )
static

print progress bar

Parameters
acutalactual progress
totaltotal progress

Definition at line 229 of file Cout.cxx.

◆ SetLineLenght()

static void Hal::Cout::SetLineLenght ( Int_t lenght)
inlinestatic
Parameters
lenghtlenght of screen

Definition at line 54 of file Cout.h.

◆ SetVerboseMode()

void Hal::Cout::SetVerboseMode ( Hal::EInfo verbose)
static

set verbose mode

Parameters
verbosemode

Definition at line 368 of file Cout.cxx.

◆ ShiftDatabase()

void Hal::Cout::ShiftDatabase ( Int_t shift,
Int_t no... )
static

print shifted database

Parameters
shiftnumber of empty places
nonumber of columns

Definition at line 317 of file Cout.cxx.

◆ ShiftInStars()

void Hal::Cout::ShiftInStars ( Int_t shift,
TString text,
Color_t color = -1 )
static

print shifted text in stars

Parameters
shiftnumber of spaces used for shift
texttext
colorcolor

Definition at line 355 of file Cout.cxx.

◆ ShiftText()

void Hal::Cout::ShiftText ( Int_t shift,
TString text,
TString option,
Color_t color = -1 )
static

print shifted text

Parameters
shiftnumber of spaces
texttext
option"L" -alight to left "M" - align to center, "R" - align to right
colorcolor

Definition at line 350 of file Cout.cxx.

◆ Stars()

void Hal::Cout::Stars ( Color_t color = -1)
static

print stars line

Parameters
colorcolor

Definition at line 150 of file Cout.cxx.

◆ Text()

void Hal::Cout::Text ( TString text,
TString option = "L",
Color_t color = -1 )
static

print formatted text

Parameters
texttext
option"L" -alight to left "M" - align to center, "R" - align to right
colorcolor

Definition at line 92 of file Cout.cxx.


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