Gaudi Framework, version v21r9

Home   Generated: 3 May 2010

GaudiTest::FilePreprocessor Class Reference

Inheritance diagram for GaudiTest::FilePreprocessor:

Inheritance graph
[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:

Generated at Mon May 3 12:29:04 2010 for Gaudi Framework, version v21r9 by Doxygen version 1.5.6 written by Dimitri van Heesch, © 1997-2004