All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
GaudiTest.BlockSkipper Class Reference
Inheritance diagram for GaudiTest.BlockSkipper:
Collaboration diagram for GaudiTest.BlockSkipper:

Public Member Functions

def __init__
 
def __processLine__
 
- Public Member Functions inherited from GaudiTest.FilePreprocessor
def __processLine__
 
def __call__
 
def __add__
 

Public Attributes

 start
 
 end
 

Private Attributes

 _skipping
 

Detailed Description

Definition at line 448 of file GaudiTest.py.

Constructor & Destructor Documentation

def GaudiTest.BlockSkipper.__init__ (   self,
  start,
  end 
)

Definition at line 449 of file GaudiTest.py.

450  def __init__(self, start, end):
451  self.start = start
452  self.end = end
453  self._skipping = False

Member Function Documentation

def GaudiTest.BlockSkipper.__processLine__ (   self,
  line 
)

Definition at line 454 of file GaudiTest.py.

455  def __processLine__(self, line):
456  if self.start in line:
457  self._skipping = True
458  return None
459  elif self.end in line:
460  self._skipping = False
461  elif self._skipping:
462  return None
463  return line

Member Data Documentation

GaudiTest.BlockSkipper._skipping
private

Definition at line 452 of file GaudiTest.py.

GaudiTest.BlockSkipper.end

Definition at line 451 of file GaudiTest.py.

GaudiTest.BlockSkipper.start

Definition at line 450 of file GaudiTest.py.


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