CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
Formatter.SimpleAsciiFormatter Class Reference

Public Member Functions

def __init__ (self, title="CMS SDT pages", style=None, outFile=sys.stdout)
 
def endTable (self)
 
def showLine (self)
 
def startTable (self, colSizes, colLabels)
 
def write (self, arg="")
 
def writeB (self, arg="")
 
def writeBr (self)
 
def writeH1 (self, arg="")
 
def writeH2 (self, arg="")
 
def writeH3 (self, arg="")
 
def writeRow (self, args)
 

Public Attributes

 cols
 
 format
 
 title
 

Detailed Description

Definition at line 10 of file Formatter.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 12 of file Formatter.py.

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

Member Function Documentation

◆ endTable()

def Formatter.SimpleAsciiFormatter.endTable (   self)

Definition at line 59 of file Formatter.py.

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

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

◆ showLine()

def Formatter.SimpleAsciiFormatter.showLine (   self)

Definition at line 17 of file Formatter.py.

17  def showLine(self) :
18  print("\n================================================================================\n")
19  return
20 

References print().

◆ startTable()

def Formatter.SimpleAsciiFormatter.startTable (   self,
  colSizes,
  colLabels 
)

Definition at line 45 of file Formatter.py.

45  def startTable(self, colSizes, colLabels) :
46  self.cols = colSizes
47  self.format = ""
48  for fmt in self.cols :
49  self.format += "%"+str(fmt)+"s "
50  print(self.format % tuple(colLabels))
51 
52  return
53 

◆ write()

def Formatter.SimpleAsciiFormatter.write (   self,
  arg = "" 
)

Definition at line 21 of file Formatter.py.

21  def write(self, arg="") :
22  print(arg)
23  return
24 

References print().

◆ writeB()

def Formatter.SimpleAsciiFormatter.writeB (   self,
  arg = "" 
)

Definition at line 25 of file Formatter.py.

25  def writeB(self, arg="") :
26  print(arg)
27  return
28 

References print().

Referenced by Formatter.SimpleHTMLFormatter.write().

◆ writeBr()

def Formatter.SimpleAsciiFormatter.writeBr (   self)

Definition at line 29 of file Formatter.py.

29  def writeBr(self) :
30  print()
31  return
32 

References print().

◆ writeH1()

def Formatter.SimpleAsciiFormatter.writeH1 (   self,
  arg = "" 
)

Definition at line 33 of file Formatter.py.

33  def writeH1(self, arg="") :
34  print(arg)
35  return
36 

References print().

◆ writeH2()

def Formatter.SimpleAsciiFormatter.writeH2 (   self,
  arg = "" 
)

Definition at line 37 of file Formatter.py.

37  def writeH2(self, arg="") :
38  print(arg)
39  return
40 

References print().

◆ writeH3()

def Formatter.SimpleAsciiFormatter.writeH3 (   self,
  arg = "" 
)

Definition at line 41 of file Formatter.py.

41  def writeH3(self, arg="") :
42  print(arg)
43  return
44 

References print().

◆ writeRow()

def Formatter.SimpleAsciiFormatter.writeRow (   self,
  args 
)

Definition at line 54 of file Formatter.py.

54  def writeRow(self, args) :
55  print(self.format % tuple(args))
56 
57  return
58 

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

Member Data Documentation

◆ cols

Formatter.SimpleAsciiFormatter.cols

Definition at line 46 of file Formatter.py.

Referenced by Formatter.SimpleAsciiFormatter.endTable().

◆ format

Formatter.SimpleAsciiFormatter.format

◆ title

Formatter.SimpleAsciiFormatter.title

Definition at line 14 of file Formatter.py.

Referenced by Formatter.SimpleHTMLFormatter.headers().

str
#define str(s)
Definition: TestProcessor.cc:53
print
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:46
writeEcalDQMStatus.write
write
Definition: writeEcalDQMStatus.py:48