|
Gaudi Framework, version v22r0 |
| Home | Generated: 9 Feb 2011 |

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 327 of file GaudiTest.py.
| def GaudiTest::FilePreprocessor::__add__ | ( | self, | ||
| rhs | ||||
| ) |
Reimplemented in GaudiTest::FilePreprocessorSequence, and GaudiTest::RegexpReplacer.
Definition at line 345 of file GaudiTest.py.
| 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.