All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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__
 
def Location
 
def SetLine
 
- Public Member Functions inherited from SerialSubstitution.ContextClass
def __init__
 
def SetOptions
 
def Location
 
def __str__
 

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 
52  def __init__(self, filename, line_no):
53  ContextClass.__init__(self)
54  self.filename = filename
self.SetLine(line_no)

Member Function Documentation

def SerialSubstitution.LineNoContextClass.Location (   self)

Definition at line 57 of file SerialSubstitution.py.

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

Definition at line 63 of file SerialSubstitution.py.

63 
64  def SetLine(self, line_no): self.line_no = line_no
65 
66 # class LineNoContextClass
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: