| # Gaudi Framework, version v21r9 |

Home |  | Generated: 3 May 2010

# 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::__processLine__ | ( |  | self,
|  |  | line |
| ) |  |  |

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

Definition at line 330 of file GaudiTest.py.

    00330                                    :
    00331         return line
        def __call__(self, input):

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

Reimplemented in GaudiTest::FilePreprocessorSequence.

Definition at line 332 of file GaudiTest.py.

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

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

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

Definition at line 345 of file GaudiTest.py.

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

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

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