| The Gaudi Framework v27r1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Private Attributes | List of all members
GaudiTesting.BaseTest.RegexpReplacer Class Reference
Inheritance diagram for GaudiTesting.BaseTest.RegexpReplacer:
[legend]
Collaboration diagram for GaudiTesting.BaseTest.RegexpReplacer:
[legend]

## Public Member Functions
def | __init__
def | __add__ (self, rhs)
def | __processLine__ (self, line)
Public Member Functions inherited from GaudiTesting.BaseTest.FilePreprocessor
def | __processLine__ (self, line)
def | __call__ (self, input)
def | __add__ (self, rhs)

## Private Attributes
| _operations

## Detailed Description

Definition at line 720 of file BaseTest.py.

## Constructor & Destructor Documentation

def GaudiTesting.BaseTest.RegexpReplacer.__init__ | ( |  | self,
|  |  | orig,
|  |  | repl = `""`,
|  |  | when = `None`
| ) |  |

Definition at line 721 of file BaseTest.py.

721 def __init__(self, orig, repl = "", when = None):
722 if when:
723 when = re.compile(when)
724 self._operations = [ (when, re.compile(orig), repl) ]
GaudiTesting.BaseTest.RegexpReplacer._operations
_operations
Definition: BaseTest.py:724
GaudiTesting.BaseTest.RegexpReplacer.__init__
def __init__
Definition: BaseTest.py:721

## Member Function Documentation

def GaudiTesting.BaseTest.RegexpReplacer.__add__ | ( |  | self,
|  |  | rhs
| ) |  |

Definition at line 725 of file BaseTest.py.

725 def __add__(self,rhs):
726 if isinstance(rhs, RegexpReplacer):
727 res = RegexpReplacer("","",None)
728 res._operations = self._operations + rhs._operations
729 else:
730 res = FilePreprocessor.__add__(self, rhs)
731 return res
GaudiTesting.BaseTest.RegexpReplacer._operations
_operations
Definition: BaseTest.py:724
GaudiTesting.BaseTest.RegexpReplacer
Definition: BaseTest.py:720
GaudiTesting.BaseTest.RegexpReplacer.__add__
def __add__(self, rhs)
Definition: BaseTest.py:725

def GaudiTesting.BaseTest.RegexpReplacer.__processLine__ | ( |  | self,
|  |  | line
| ) |  |

Definition at line 732 of file BaseTest.py.

732 def __processLine__(self, line):
733 for w,o,r in self._operations:
734 if w is None or w.search(line):
735 line = o.sub(r, line)
736 return line
737
738 # Common preprocessors
GaudiTesting.BaseTest.RegexpReplacer._operations
_operations
Definition: BaseTest.py:724
GaudiTesting.BaseTest.RegexpReplacer.__processLine__
def __processLine__(self, line)
Definition: BaseTest.py:732

## Member Data Documentation

GaudiTesting.BaseTest.RegexpReplacer._operations
| private

Definition at line 724 of file BaseTest.py.

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

- GaudiPolicy/python/GaudiTesting/BaseTest.py