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 9 of file Formatter.py.

Constructor & Destructor Documentation

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

Definition at line 11 of file Formatter.py.

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

Member Function Documentation

def Formatter.SimpleAsciiFormatter.endTable (   self)

Definition at line 58 of file Formatter.py.

References Formatter.SimpleAsciiFormatter.cols, ProcMatrix::Matrix.cols, Formatter.SimpleAsciiFormatter.format, and evf::evtn::TCDSHeader::tcdsheader.format.

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

Definition at line 16 of file Formatter.py.

16  def showLine(self) :
17  print "\n================================================================================\n"
18  return
19 
def Formatter.SimpleAsciiFormatter.startTable (   self,
  colSizes,
  colLabels 
)

Definition at line 44 of file Formatter.py.

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

Definition at line 20 of file Formatter.py.

20  def write(self, arg="") :
21  print arg
22  return
23 
def write(self, arg="")
Definition: Formatter.py:20
def Formatter.SimpleAsciiFormatter.writeB (   self,
  arg = "" 
)

Definition at line 24 of file Formatter.py.

Referenced by Formatter.SimpleHTMLFormatter.write().

24  def writeB(self, arg="") :
25  print arg
26  return
27 
def writeB(self, arg="")
Definition: Formatter.py:24
def Formatter.SimpleAsciiFormatter.writeBr (   self)

Definition at line 28 of file Formatter.py.

28  def writeBr(self) :
29  print
30  return
31 
def Formatter.SimpleAsciiFormatter.writeH1 (   self,
  arg = "" 
)

Definition at line 32 of file Formatter.py.

32  def writeH1(self, arg="") :
33  print arg
34  return
35 
def writeH1(self, arg="")
Definition: Formatter.py:32
def Formatter.SimpleAsciiFormatter.writeH2 (   self,
  arg = "" 
)

Definition at line 36 of file Formatter.py.

36  def writeH2(self, arg="") :
37  print arg
38  return
39 
def writeH2(self, arg="")
Definition: Formatter.py:36
def Formatter.SimpleAsciiFormatter.writeH3 (   self,
  arg = "" 
)

Definition at line 40 of file Formatter.py.

40  def writeH3(self, arg="") :
41  print arg
42  return
43 
def writeH3(self, arg="")
Definition: Formatter.py:40
def Formatter.SimpleAsciiFormatter.writeRow (   self,
  args 
)

Definition at line 53 of file Formatter.py.

References Formatter.SimpleAsciiFormatter.format, and evf::evtn::TCDSHeader::tcdsheader.format.

53  def writeRow(self, args) :
54  print self.format % tuple(args)
55 
56  return
57 
def writeRow(self, args)
Definition: Formatter.py:53

Member Data Documentation

Formatter.SimpleAsciiFormatter.cols

Definition at line 45 of file Formatter.py.

Referenced by Formatter.SimpleAsciiFormatter.endTable().

Formatter.SimpleAsciiFormatter.format
Formatter.SimpleAsciiFormatter.title