| The Gaudi Framework v30r0 (c919700c)

- 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__ (self, orig, repl="", when=None)
def | __add__ (self, rhs)
def | __processLine__ (self, line)
Public Member Functions inherited from GaudiTesting.BaseTest.FilePreprocessor
def | __processLine__ (self, line)
def | __processFile__ (self, lines)
def | __call__ (self, input)
def | __add__ (self, rhs)

## Private Attributes
| _operations

## Detailed Description

Definition at line 767 of file BaseTest.py.

## Constructor & Destructor Documentation

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

Definition at line 769 of file BaseTest.py.

769 def __init__(self, orig, repl="", when=None):
770 if when:
771 when = re.compile(when)
772 self._operations = [(when, re.compile(orig), repl)]
773
GaudiTesting.BaseTest.RegexpReplacer._operations
_operations
Definition: BaseTest.py:772
GaudiTesting.BaseTest.RegexpReplacer.__init__
def __init__(self, orig, repl="", when=None)
Definition: BaseTest.py:769

## Member Function Documentation

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

Definition at line 774 of file BaseTest.py.

774 def __add__(self, rhs):
775 if isinstance(rhs, RegexpReplacer):
776 res = RegexpReplacer("", "", None)
777 res._operations = self._operations + rhs._operations
778 else:
779 res = FilePreprocessor.__add__(self, rhs)
780 return res
781
GaudiTesting.BaseTest.RegexpReplacer._operations
_operations
Definition: BaseTest.py:772
GaudiTesting.BaseTest.RegexpReplacer
Definition: BaseTest.py:767
GaudiTesting.BaseTest.RegexpReplacer.__add__
def __add__(self, rhs)
Definition: BaseTest.py:774

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

Definition at line 782 of file BaseTest.py.

782 def __processLine__(self, line):
783 for w, o, r in self._operations:
784 if w is None or w.search(line):
785 line = o.sub(r, line)
786 return line
787
788
789 # Common preprocessors
GaudiTesting.BaseTest.RegexpReplacer._operations
_operations
Definition: BaseTest.py:772
GaudiTesting.BaseTest.RegexpReplacer.__processLine__
def __processLine__(self, line)
Definition: BaseTest.py:782

## Member Data Documentation

GaudiTesting.BaseTest.RegexpReplacer._operations
| private

Definition at line 772 of file BaseTest.py.

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

- GaudiPolicy/python/GaudiTesting/BaseTest.py