test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 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 
12  def __init__(self, title="CMS SDT pages", style=None, outFile=sys.stdout) :
13  self.format = ""
14  self.title = title
15  return

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, evf::evtn::TCDSHeader::tcdsheader.format, and evf::evtn::TCDSHeader::tcdsheader::@323.format.

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

Definition at line 16 of file Formatter.py.

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

Definition at line 44 of file Formatter.py.

44 
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
def Formatter.SimpleAsciiFormatter.write (   self,
  arg = "" 
)

Definition at line 20 of file Formatter.py.

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

Definition at line 24 of file Formatter.py.

Referenced by Formatter.SimpleHTMLFormatter.write().

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

Definition at line 28 of file Formatter.py.

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

Definition at line 32 of file Formatter.py.

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

Definition at line 36 of file Formatter.py.

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

Definition at line 40 of file Formatter.py.

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

Definition at line 53 of file Formatter.py.

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

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

Member Data Documentation

Formatter.SimpleAsciiFormatter.cols

Definition at line 45 of file Formatter.py.

Referenced by Formatter.SimpleAsciiFormatter.endTable().

Formatter.SimpleAsciiFormatter.format

Definition at line 12 of file Formatter.py.

Referenced by Formatter.SimpleAsciiFormatter.endTable(), progressbar.Timer.update(), progressbar.FormatLabel.update(), and Formatter.SimpleAsciiFormatter.writeRow().

Formatter.SimpleAsciiFormatter.title

Definition at line 13 of file Formatter.py.

Referenced by cuy.plotElement.__init__(), cuy.additionElement.__init__(), cuy.superimposeElement.__init__(), cuy.graphElement.__init__(), Vispa.Views.LineDecayView.LineDecayContainer.autolayout(), Vispa.Views.LineDecayView.LineDecayContainer.autolayoutThreadFinished(), Vispa.Views.LineDecayView.LineDecayContainer.childFinishedAutolayouting(), Formatter.SimpleHTMLFormatter.headers(), and Vispa.Gui.PortWidget.PortWidget.name().