| # Gaudi Framework, version v21r6 |

Home |  | Generated: 11 Nov 2009

# GaudiTest::RegexpReplacer Class Reference

Inheritance diagram for GaudiTest::RegexpReplacer:

[legend]
Collaboration diagram for GaudiTest::RegexpReplacer:

[legend]

List of all members.

## Detailed Description

Definition at line 387 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 388 of file GaudiTest.py.

    00388                                                     :
    00389         if when:
    00390             when = re.compile(when)
    00391         self._operations = [ (when, re.compile(orig), repl) ]
        def __add__(self,rhs):

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

Reimplemented from GaudiTest::FilePreprocessor.

Definition at line 392 of file GaudiTest.py.

    00392                          :
    00393         if isinstance(rhs, RegexpReplacer):
    00394             res = RegexpReplacer("","",None)
    00395             res._operations = self._operations + rhs._operations
    00396         else:
    00397             res = FilePreprocessor.__add__(self, rhs)
    00398         return res
        def __processLine__(self, line):

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

Reimplemented from GaudiTest::FilePreprocessor.

Definition at line 399 of file GaudiTest.py.

    00399                                    :
    00400         for w,o,r in self._operations:
    00401             if w is None or w.search(line):
    00402                 line = o.sub(r, line)
    00403         return line
    00404
    00405 # Common preprocessors
    maskPointers  = RegexpReplacer("0x[0-9a-fA-F]{4,16}","0x########")

## Member Data Documentation

GaudiTest::RegexpReplacer::_operations`[private]`

Definition at line 391 of file GaudiTest.py.

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

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v21r6/GaudiPolicy/qmtest_classes/GaudiTest.py