|
Gaudi Framework, version v23r4 |
| Home | Generated: Mon Sep 17 2012 |

Public Member Functions | |
| def | __processLine__ |
| def | __call__ |
| def | __add__ |
Base class for a callable that takes a file and returns a modified version of it.
Definition at line 338 of file GaudiTest.py.
| def GaudiTest::FilePreprocessor::__add__ | ( | self, | |
| rhs | |||
| ) |
Reimplemented in GaudiTest::FilePreprocessorSequence, and GaudiTest::RegexpReplacer.
Definition at line 356 of file GaudiTest.py.
| def GaudiTest::FilePreprocessor::__call__ | ( | self, | |
| input | |||
| ) |
Reimplemented in GaudiTest::FilePreprocessorSequence.
Definition at line 343 of file GaudiTest.py.
00344 : 00345 if hasattr(input,"__iter__"): 00346 lines = input 00347 mergeback = False 00348 else: 00349 lines = input.splitlines() 00350 mergeback = True 00351 output = [] 00352 for l in lines: 00353 l = self.__processLine__(l) 00354 if l: output.append(l) 00355 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 341 of file GaudiTest.py.