| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

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

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

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | List of all members
GaudiTest.FilePreprocessor Class Reference
Inheritance diagram for GaudiTest.FilePreprocessor:
[legend]

## Public Member Functions
def | __processLine__
def | __call__
def | __add__

## Detailed Description

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

Definition at line 395 of file GaudiTest.py.

## Member Function Documentation

def GaudiTest.FilePreprocessor.__add__ | ( |  | self,
|  |  | rhs
| ) |  |

Definition at line 413 of file GaudiTest.py.

413
414 def __add__(self, rhs):
415 return FilePreprocessorSequence([self,rhs])

def GaudiTest.FilePreprocessor.__call__ | ( |  | self,
|  |  | input
| ) |  |

Definition at line 400 of file GaudiTest.py.

400
401 def __call__(self, input):
402 if hasattr(input,"__iter__"):
403 lines = input
404 mergeback = False
405 else:
406 lines = input.splitlines()
407 mergeback = True
408 output = []
409 for l in lines:
410 l = self.__processLine__(l)
411 if l: output.append(l)
412 if mergeback: output = '\n'.join(output)
return output

def GaudiTest.FilePreprocessor.__processLine__ | ( |  | self,
|  |  | line
| ) |  |

Definition at line 398 of file GaudiTest.py.

398
399 def __processLine__(self, line):
return line

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

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