CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes
Formatter.SimpleAsciiFormatter Class Reference

Public Member Functions

def __init__
 
def endTable
 
def showLine
 
def startTable
 
def write
 
def writeB
 
def writeBr
 
def writeH1
 
def writeH2
 
def writeH3
 
def writeRow
 

Public Attributes

 cols
 
 format
 
 title
 

Detailed Description

Definition at line 10 of file Formatter.py.

Constructor & Destructor Documentation

def Formatter.SimpleAsciiFormatter.__init__ (   self,
  title = "CMS SDT pages",
  style = None,
  outFile = sys.stdout 
)

Definition at line 12 of file Formatter.py.

12 
13  def __init__(self, title="CMS SDT pages", style=None, outFile=sys.stdout) :
14  self.format = ""
15  self.title = title
16  return

Member Function Documentation

def Formatter.SimpleAsciiFormatter.endTable (   self)

Definition at line 59 of file Formatter.py.

References Formatter.SimpleAsciiFormatter.cols, ProcMatrix::Matrix.cols, and Formatter.SimpleAsciiFormatter.format.

59 
60  def endTable(self) :
61  self.format = None
62  self.cols = None
63 
64 
65 # ================================================================================
def Formatter.SimpleAsciiFormatter.showLine (   self)

Definition at line 17 of file Formatter.py.

References print().

17 
18  def showLine(self) :
19  print("\n================================================================================\n")
20  return
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def Formatter.SimpleAsciiFormatter.startTable (   self,
  colSizes,
  colLabels 
)

Definition at line 45 of file Formatter.py.

45 
46  def startTable(self, colSizes, colLabels) :
47  self.cols = colSizes
48  self.format = ""
49  for fmt in self.cols :
50  self.format += "%"+str(fmt)+"s "
51  print(self.format % tuple(colLabels))
52 
53  return
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
#define str(s)
def Formatter.SimpleAsciiFormatter.write (   self,
  arg = "" 
)

Definition at line 21 of file Formatter.py.

References print().

21 
22  def write(self, arg="") :
23  print(arg)
24  return
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def Formatter.SimpleAsciiFormatter.writeB (   self,
  arg = "" 
)

Definition at line 25 of file Formatter.py.

References print().

Referenced by Formatter.SimpleHTMLFormatter.write().

25 
26  def writeB(self, arg="") :
27  print(arg)
28  return
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def Formatter.SimpleAsciiFormatter.writeBr (   self)

Definition at line 29 of file Formatter.py.

References print().

29 
30  def writeBr(self) :
31  print()
32  return
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def Formatter.SimpleAsciiFormatter.writeH1 (   self,
  arg = "" 
)

Definition at line 33 of file Formatter.py.

References print().

33 
34  def writeH1(self, arg="") :
35  print(arg)
36  return
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def Formatter.SimpleAsciiFormatter.writeH2 (   self,
  arg = "" 
)

Definition at line 37 of file Formatter.py.

References print().

37 
38  def writeH2(self, arg="") :
39  print(arg)
40  return
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def Formatter.SimpleAsciiFormatter.writeH3 (   self,
  arg = "" 
)

Definition at line 41 of file Formatter.py.

References print().

41 
42  def writeH3(self, arg="") :
43  print(arg)
44  return
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def Formatter.SimpleAsciiFormatter.writeRow (   self,
  args 
)

Definition at line 54 of file Formatter.py.

References Formatter.SimpleAsciiFormatter.format, and print().

54 
55  def writeRow(self, args) :
56  print(self.format % tuple(args))
57 
58  return
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47

Member Data Documentation

Formatter.SimpleAsciiFormatter.cols

Definition at line 46 of file Formatter.py.

Referenced by Formatter.SimpleAsciiFormatter.endTable().

Formatter.SimpleAsciiFormatter.format

Definition at line 13 of file Formatter.py.

Referenced by Formatter.SimpleAsciiFormatter.endTable(), progressbar.Timer.update(), progressbar.FormatLabel.update(), genericValidation.ValidationWithPlotsSummaryBase.SummaryItem.values(), and Formatter.SimpleAsciiFormatter.writeRow().

Formatter.SimpleAsciiFormatter.title

Definition at line 14 of file Formatter.py.

Referenced by Formatter.SimpleHTMLFormatter.headers().