The Gaudi Framework  v32r2 (46d42edc)
GaudiTest.LineSkipper Class Reference
Inheritance diagram for GaudiTest.LineSkipper:
Collaboration diagram for GaudiTest.LineSkipper:

Public Member Functions

def __init__ (self, strings=[], regexps=[])
 
def __processLine__ (self, line)
 
- Public Member Functions inherited from GaudiTest.FilePreprocessor
def __call__ (self, input)
 
def __add__ (self, rhs)
 

Public Attributes

 strings
 
 regexps
 

Detailed Description

Definition at line 484 of file GaudiTest.py.

Constructor & Destructor Documentation

◆ __init__()

def GaudiTest.LineSkipper.__init__ (   self,
  strings = [],
  regexps = [] 
)

Definition at line 485 of file GaudiTest.py.

485  def __init__(self, strings=[], regexps=[]):
486  import re
487  self.strings = strings
488  self.regexps = map(re.compile, regexps)
489 
struct GAUDI_API map
Parametrisation class for map-like implementation.

Member Function Documentation

◆ __processLine__()

def GaudiTest.LineSkipper.__processLine__ (   self,
  line 
)

Reimplemented from GaudiTest.FilePreprocessor.

Definition at line 490 of file GaudiTest.py.

490  def __processLine__(self, line):
491  for s in self.strings:
492  if line.find(s) >= 0:
493  return None
494  for r in self.regexps:
495  if r.search(line):
496  return None
497  return line
498 
499 

Member Data Documentation

◆ regexps

GaudiTest.LineSkipper.regexps

Definition at line 488 of file GaudiTest.py.

◆ strings

GaudiTest.LineSkipper.strings

Definition at line 487 of file GaudiTest.py.


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