Gaudi Framework, version v21r7p1

Home   Generated: 15 Feb 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 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:

Generated at Mon Feb 15 17:44:32 2010 for Gaudi Framework, version v21r7p1 by Doxygen version 1.5.6 written by Dimitri van Heesch, © 1997-2004