| # Gaudi Framework, version v22r0 |

Home |  | Generated: 9 Feb 2011

# GaudiTest::FilePreprocessor Class Reference

Inheritance diagram for GaudiTest::FilePreprocessor:
[legend]

List of all members.

## 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 327 of file GaudiTest.py.

## Member Function Documentation

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

Reimplemented in GaudiTest::FilePreprocessorSequence, and GaudiTest::RegexpReplacer.

Definition at line 345 of file GaudiTest.py.

    00346                           :
    00347         return FilePreprocessorSequence([self,rhs])

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

Reimplemented in GaudiTest::FilePreprocessorSequence.

Definition at line 332 of file GaudiTest.py.

    00333                              :
    00334         if hasattr(input,"__iter__"):
    00335             lines = input
    00336             mergeback = False
    00337         else:
    00338             lines = input.splitlines()
    00339             mergeback = True
    00340         output = []
    00341         for l in lines:
    00342             l = self.__processLine__(l)
    00343             if l: output.append(l)
    00344         if mergeback: output = '\n'.join(output)
            return output

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

Reimplemented in GaudiTest::LineSkipper, GaudiTest::BlockSkipper, GaudiTest::RegexpReplacer, and GaudiTest::LineSorter.

Definition at line 330 of file GaudiTest.py.

    00331                                    :
            return line

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

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

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines