Public Member Functions | Public Attributes | List of all members
SerialSubstitution.LineNoContextClass Class Reference
Inheritance diagram for SerialSubstitution.LineNoContextClass:
SerialSubstitution.ContextClass

Public Member Functions

def __init__ (self, filename, line_no)
 
def Location (self)
 
def SetLine (self, line_no)
 
- Public Member Functions inherited from SerialSubstitution.ContextClass
def __init__ (self)
 
def SetOptions (self, options)
 
def Location (self)
 
def __str__ (self)
 

Public Attributes

 filename
 
 line_no
 
- Public Attributes inherited from SerialSubstitution.ContextClass
 options
 

Detailed Description

Definition at line 50 of file SerialSubstitution.py.

Constructor & Destructor Documentation

def SerialSubstitution.LineNoContextClass.__init__ (   self,
  filename,
  line_no 
)

Definition at line 51 of file SerialSubstitution.py.

51  def __init__(self, filename, line_no):
52  ContextClass.__init__(self)
53  self.filename = filename
54  self.SetLine(line_no)
def __init__(self, filename, line_no)

Member Function Documentation

def SerialSubstitution.LineNoContextClass.Location (   self)

Definition at line 57 of file SerialSubstitution.py.

57  def Location(self):
58  return "%s@%s" % (
59  Colorize(self.filename, 'source', self.options),
60  Colorize(self.line_no, 'line_no', self.options)
61  )
62 
def Colorize(msg, category, options)
Library code.
def SerialSubstitution.LineNoContextClass.SetLine (   self,
  line_no 
)

Definition at line 63 of file SerialSubstitution.py.

63  def SetLine(self, line_no): self.line_no = line_no
64 
65 # class LineNoContextClass
66 
67 

Member Data Documentation

SerialSubstitution.LineNoContextClass.filename

Definition at line 53 of file SerialSubstitution.py.

SerialSubstitution.LineNoContextClass.line_no

Definition at line 63 of file SerialSubstitution.py.


The documentation for this class was generated from the following file: