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

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 
def __init__(self, title="CMS SDT pages", style=None, outFile=sys.stdout)
Definition: Formatter.py:12

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  def endTable(self) :
60  self.format = None
61  self.cols = None
62 
63 
64 # ================================================================================
65 
def Formatter.SimpleAsciiFormatter.showLine (   self)

Definition at line 17 of file Formatter.py.

References edm.print().

17  def showLine(self) :
18  print("\n================================================================================\n")
19  return
20 
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66
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 
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66
def startTable(self, colSizes, colLabels)
Definition: Formatter.py:45
#define str(s)
def Formatter.SimpleAsciiFormatter.write (   self,
  arg = "" 
)

Definition at line 21 of file Formatter.py.

References edm.print().

21  def write(self, arg="") :
22  print(arg)
23  return
24 
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66
def write(self, arg="")
Definition: Formatter.py:21
def Formatter.SimpleAsciiFormatter.writeB (   self,
  arg = "" 
)

Definition at line 25 of file Formatter.py.

References edm.print().

Referenced by Formatter.SimpleHTMLFormatter.write().

25  def writeB(self, arg="") :
26  print(arg)
27  return
28 
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66
def writeB(self, arg="")
Definition: Formatter.py:25
def Formatter.SimpleAsciiFormatter.writeBr (   self)

Definition at line 29 of file Formatter.py.

References edm.print().

29  def writeBr(self) :
30  print()
31  return
32 
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66
def Formatter.SimpleAsciiFormatter.writeH1 (   self,
  arg = "" 
)

Definition at line 33 of file Formatter.py.

References edm.print().

33  def writeH1(self, arg="") :
34  print(arg)
35  return
36 
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66
def writeH1(self, arg="")
Definition: Formatter.py:33
def Formatter.SimpleAsciiFormatter.writeH2 (   self,
  arg = "" 
)

Definition at line 37 of file Formatter.py.

References edm.print().

37  def writeH2(self, arg="") :
38  print(arg)
39  return
40 
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66
def writeH2(self, arg="")
Definition: Formatter.py:37
def Formatter.SimpleAsciiFormatter.writeH3 (   self,
  arg = "" 
)

Definition at line 41 of file Formatter.py.

References edm.print().

41  def writeH3(self, arg="") :
42  print(arg)
43  return
44 
def writeH3(self, arg="")
Definition: Formatter.py:41
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66
def Formatter.SimpleAsciiFormatter.writeRow (   self,
  args 
)

Definition at line 54 of file Formatter.py.

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

54  def writeRow(self, args) :
55  print(self.format % tuple(args))
56 
57  return
58 
def writeRow(self, args)
Definition: Formatter.py:54
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66

Member Data Documentation

Formatter.SimpleAsciiFormatter.cols

Definition at line 46 of file Formatter.py.

Referenced by Formatter.SimpleAsciiFormatter.endTable().

Formatter.SimpleAsciiFormatter.format
Formatter.SimpleAsciiFormatter.title