Gaudi Framework, version v21r4

Home   Generated: 7 Sep 2009

GaudiTest::FilePreprocessor Class Reference

Inheritance diagram for GaudiTest::FilePreprocessor:

Inheritance graph
[legend]

List of all members.


Detailed Description

Base class for a callable that takes a file and returns a modified
version of it.

Definition at line 310 of file GaudiTest.py.


Public Member Functions

def __processLine__
def __call__
def __add__

Member Function Documentation

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

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

Definition at line 313 of file GaudiTest.py.

00313                                    :
00314         return line
    def __call__(self, input):

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

Reimplemented in GaudiTest::FilePreprocessorSequence.

Definition at line 315 of file GaudiTest.py.

00315                              :
00316         if hasattr(input,"__iter__"):
00317             lines = input
00318             mergeback = False
00319         else:
00320             lines = input.splitlines()
00321             mergeback = True
00322         output = []
00323         for l in lines:
00324             l = self.__processLine__(l)
00325             if l: output.append(l)
00326         if mergeback: output = '\n'.join(output)
00327         return output
    def __add__(self, rhs):

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

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

Definition at line 328 of file GaudiTest.py.

00328                           :
00329         return FilePreprocessorSequence([self,rhs])
00330 
class FilePreprocessorSequence(FilePreprocessor):


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

Generated at Mon Sep 7 18:26:44 2009 for Gaudi Framework, version v21r4 by Doxygen version 1.5.6 written by Dimitri van Heesch, © 1997-2004