| # Gaudi Framework, version v21r7 |

Home |  | Generated: 22 Jan 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 326 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 329 of file GaudiTest.py.

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

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

Reimplemented in GaudiTest::FilePreprocessorSequence.

Definition at line 331 of file GaudiTest.py.

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

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

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

Definition at line 344 of file GaudiTest.py.

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

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

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