| The Gaudi Framework v28r2p1 (f1a77ff4)

- 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 711 of file BaseTest.py.

## Constructor & Destructor Documentation

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

Definition at line 712 of file BaseTest.py.

712 def __init__(self, orig, repl = "", when = None):
713 if when:
714 when = re.compile(when)
715 self._operations = [ (when, re.compile(orig), repl) ]
GaudiTesting.BaseTest.RegexpReplacer._operations
_operations
Definition: BaseTest.py:715
GaudiTesting.BaseTest.RegexpReplacer.__init__
def __init__(self, orig, repl="", when=None)
Definition: BaseTest.py:712

## Member Function Documentation

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

Definition at line 716 of file BaseTest.py.

716 def __add__(self,rhs):
717 if isinstance(rhs, RegexpReplacer):
718 res = RegexpReplacer("","",None)
719 res._operations = self._operations + rhs._operations
720 else:
721 res = FilePreprocessor.__add__(self, rhs)
722 return res
GaudiTesting.BaseTest.RegexpReplacer._operations
_operations
Definition: BaseTest.py:715
GaudiTesting.BaseTest.RegexpReplacer
Definition: BaseTest.py:711
GaudiTesting.BaseTest.RegexpReplacer.__add__
def __add__(self, rhs)
Definition: BaseTest.py:716

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

Definition at line 723 of file BaseTest.py.

723 def __processLine__(self, line):
724 for w,o,r in self._operations:
725 if w is None or w.search(line):
726 line = o.sub(r, line)
727 return line
728
729 # Common preprocessors
GaudiTesting.BaseTest.RegexpReplacer._operations
_operations
Definition: BaseTest.py:715
GaudiTesting.BaseTest.RegexpReplacer.__processLine__
def __processLine__(self, line)
Definition: BaseTest.py:723

## Member Data Documentation

GaudiTesting.BaseTest.RegexpReplacer._operations
| private

Definition at line 715 of file BaseTest.py.

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

- GaudiPolicy/python/GaudiTesting/BaseTest.py