Gaudi Framework, version v21r4

Home   Generated: 7 Sep 2009

GaudiTest::RegexpReplacer Class Reference

Inheritance diagram for GaudiTest::RegexpReplacer:

Inheritance graph
[legend]
Collaboration diagram for GaudiTest::RegexpReplacer:

Collaboration graph
[legend]

List of all members.


Detailed Description

Definition at line 371 of file GaudiTest.py.


Public Member Functions

def __init__
def __add__
def __processLine__

Private Attributes

 _operations

Member Function Documentation

def GaudiTest::RegexpReplacer::__init__ (   self,
  orig,
  repl = "",
  when = None 
)

Definition at line 372 of file GaudiTest.py.

00372                                                     :
00373         if when:
00374             when = re.compile(when)
00375         self._operations = [ (when, re.compile(orig), repl) ]
    def __add__(self,rhs):

def GaudiTest::RegexpReplacer::__add__ (   self,
  rhs 
)

Reimplemented from GaudiTest::FilePreprocessor.

Definition at line 376 of file GaudiTest.py.

00376                          :
00377         if isinstance(rhs, RegexpReplacer):
00378             res = RegexpReplacer("","",None)
00379             res._operations = self._operations + rhs._operations
00380         else:
00381             res = FilePreprocessor.__add__(self, rhs)
00382         return res
    def __processLine__(self, line):

def GaudiTest::RegexpReplacer::__processLine__ (   self,
  line 
)

Reimplemented from GaudiTest::FilePreprocessor.

Definition at line 383 of file GaudiTest.py.

00383                                    :
00384         for w,o,r in self._operations:
00385             if w is None or w.search(line):
00386                 line = o.sub(r, line)
00387         return line
00388 
00389 # Common preprocessors        
maskPointers  = RegexpReplacer("0x[0-9a-fA-F]{4,16}","0x########")


Member Data Documentation

Definition at line 375 of file GaudiTest.py.


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

Generated at Mon Sep 7 18:26:47 2009 for Gaudi Framework, version v21r4 by Doxygen version 1.5.6 written by Dimitri van Heesch, © 1997-2004