The Gaudi Framework  v33r1 (b1225454)
GaudiTest.BlockSkipper Class Reference
Inheritance diagram for GaudiTest.BlockSkipper:
Collaboration diagram for GaudiTest.BlockSkipper:

Public Member Functions

def __init__ (self, start, end)
 
def __processLine__ (self, line)
 
- Public Member Functions inherited from GaudiTest.FilePreprocessor
def __call__ (self, input)
 
def __add__ (self, rhs)
 

Public Attributes

 start
 
 end
 

Private Attributes

 _skipping
 

Detailed Description

Definition at line 510 of file GaudiTest.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 511 of file GaudiTest.py.

511  def __init__(self, start, end):
512  self.start = start
513  self.end = end
514  self._skipping = False
515 

Member Function Documentation

◆ __processLine__()

def GaudiTest.BlockSkipper.__processLine__ (   self,
  line 
)

Reimplemented from GaudiTest.FilePreprocessor.

Definition at line 516 of file GaudiTest.py.

516  def __processLine__(self, line):
517  if self.start in line:
518  self._skipping = True
519  return None
520  elif self.end in line:
521  self._skipping = False
522  elif self._skipping:
523  return None
524  return line
525 
526 

Member Data Documentation

◆ _skipping

GaudiTest.BlockSkipper._skipping
private

Definition at line 514 of file GaudiTest.py.

◆ end

GaudiTest.BlockSkipper.end

Definition at line 513 of file GaudiTest.py.

◆ start

GaudiTest.BlockSkipper.start

Definition at line 512 of file GaudiTest.py.


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