The Gaudi Framework  v33r0 (d5ea422b)
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 494 of file GaudiTest.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 495 of file GaudiTest.py.

495  def __init__(self, strings=[], regexps=[]):
496  import re
497  self.strings = strings
498  self.regexps = map(re.compile, regexps)
499 
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 500 of file GaudiTest.py.

500  def __processLine__(self, line):
501  for s in self.strings:
502  if line.find(s) >= 0:
503  return None
504  for r in self.regexps:
505  if r.search(line):
506  return None
507  return line
508 
509 

Member Data Documentation

◆ regexps

GaudiTest.LineSkipper.regexps

Definition at line 498 of file GaudiTest.py.

◆ strings

GaudiTest.LineSkipper.strings

Definition at line 497 of file GaudiTest.py.


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