CMS 3D CMS Logo

Public Member Functions | Public Attributes

Formatter::SimpleAsciiFormatter Class Reference

List of all members.

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.

00012                                                                               :
00013         self.format = ""
00014         self.title = title
00015         return
    

Member Function Documentation

def Formatter::SimpleAsciiFormatter::endTable (   self)

Definition at line 58 of file Formatter.py.

00059                        :
00060         self.format = None
00061         self.cols   = None
00062         
00063     
00064 # ================================================================================

def Formatter::SimpleAsciiFormatter::showLine (   self)

Definition at line 16 of file Formatter.py.

00017                        :
00018         print "\n================================================================================\n"
00019         return
    
def Formatter::SimpleAsciiFormatter::startTable (   self,
  colSizes,
  colLabels 
)

Definition at line 44 of file Formatter.py.

00045                                               :
00046         self.cols = colSizes
00047         self.format = ""
00048         for fmt in self.cols :
00049             self.format += "%"+str(fmt)+"s "
00050         print self.format % tuple(colLabels)
00051 
00052         return

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

Definition at line 20 of file Formatter.py.

00021                             :
00022         print arg
00023         return

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

Definition at line 24 of file Formatter.py.

00025                              :
00026         print arg
00027         return

def Formatter::SimpleAsciiFormatter::writeBr (   self)

Definition at line 28 of file Formatter.py.

00029                       :
00030         print 
00031         return

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

Definition at line 32 of file Formatter.py.

00033                               :
00034         print arg
00035         return
    
def Formatter::SimpleAsciiFormatter::writeH2 (   self,
  arg = "" 
)

Definition at line 36 of file Formatter.py.

00037                               :
00038         print arg
00039         return

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

Definition at line 40 of file Formatter.py.

00041                               :
00042         print arg
00043         return
    
def Formatter::SimpleAsciiFormatter::writeRow (   self,
  args 
)

Definition at line 53 of file Formatter.py.

00054                              :
00055         print self.format % tuple(args)
00056 
00057         return


Member Data Documentation

Definition at line 44 of file Formatter.py.

Definition at line 11 of file Formatter.py.

Definition at line 11 of file Formatter.py.