Gaudi Framework, version v23r6

Home   Generated: Wed Jan 30 2013
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | List of all members
GaudiTest.FilePreprocessor Class Reference
Inheritance diagram for GaudiTest.FilePreprocessor:
Inheritance graph
[legend]

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 338 of file GaudiTest.py.

Member Function Documentation

def GaudiTest.FilePreprocessor.__add__ (   self,
  rhs 
)

Definition at line 356 of file GaudiTest.py.

357  def __add__(self, rhs):
358  return FilePreprocessorSequence([self,rhs])
def GaudiTest.FilePreprocessor.__call__ (   self,
  input 
)

Definition at line 343 of file GaudiTest.py.

344  def __call__(self, input):
345  if hasattr(input,"__iter__"):
346  lines = input
347  mergeback = False
348  else:
349  lines = input.splitlines()
350  mergeback = True
351  output = []
352  for l in lines:
353  l = self.__processLine__(l)
354  if l: output.append(l)
355  if mergeback: output = '\n'.join(output)
return output
def GaudiTest.FilePreprocessor.__processLine__ (   self,
  line 
)

Definition at line 341 of file GaudiTest.py.

342  def __processLine__(self, line):
return line

The documentation for this class was generated from the following file:
Generated at Wed Jan 30 2013 17:13:52 for Gaudi Framework, version v23r6 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004