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

Public Member Functions

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

Public Attributes

 strings
 
 regexps
 

Detailed Description

Definition at line 435 of file GaudiTest.py.

Constructor & Destructor Documentation

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

Definition at line 436 of file GaudiTest.py.

437  def __init__(self, strings = [], regexps = []):
438  import re
439  self.strings = strings
440  self.regexps = map(re.compile,regexps)
struct GAUDI_API map
Parametrisation class for map-like implementation.

Member Function Documentation

def GaudiTest.LineSkipper.__processLine__ (   self,
  line 
)

Definition at line 441 of file GaudiTest.py.

442  def __processLine__(self, line):
443  for s in self.strings:
444  if line.find(s) >= 0: return None
445  for r in self.regexps:
446  if r.search(line): return None
447  return line

Member Data Documentation

GaudiTest.LineSkipper.regexps

Definition at line 439 of file GaudiTest.py.

GaudiTest.LineSkipper.strings

Definition at line 438 of file GaudiTest.py.


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