| The Gaudi Framework v27r1

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

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

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

## Public Member Functions
def | __processLine__ (self, line)
def | __call__ (self, input)
def | __add__ (self, rhs)

## Detailed Description

    Base class for a callable that takes a file and returns a modified
        version of it.

Definition at line 659 of file BaseTest.py.

## Member Function Documentation

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

Definition at line 677 of file BaseTest.py.

677 def __add__(self, rhs):
678 return FilePreprocessorSequence([self,rhs])
679
GaudiTesting.BaseTest.FilePreprocessor.__add__
def __add__(self, rhs)
Definition: BaseTest.py:677
GaudiTesting.BaseTest.FilePreprocessorSequence
Definition: BaseTest.py:680

def GaudiTesting.BaseTest.FilePreprocessor.__call__ | ( |  | self,
|  |  | input
| ) |  |

Definition at line 664 of file BaseTest.py.

664 def __call__(self, input):
665 if hasattr(input,"__iter__"):
666 lines = input
667 mergeback = False
668 else:
669 lines = input.splitlines()
670 mergeback = True
671 output = []
672 for l in lines:
673 l = self.__processLine__(l)
674 if l: output.append(l)
675 if mergeback: output = '\n'.join(output)
676 return output
GaudiTesting.BaseTest.FilePreprocessor.__processLine__
def __processLine__(self, line)
Definition: BaseTest.py:662
GaudiTesting.BaseTest.FilePreprocessor.__call__
def __call__(self, input)
Definition: BaseTest.py:664

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

Definition at line 662 of file BaseTest.py.

662 def __processLine__(self, line):
663 return line
GaudiTesting.BaseTest.FilePreprocessor.__processLine__
def __processLine__(self, line)
Definition: BaseTest.py:662

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

- GaudiPolicy/python/GaudiTesting/BaseTest.py