Gaudi Framework, version v24r2

Home   Generated: Wed Dec 4 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 341 of file GaudiTest.py.

Member Function Documentation

def GaudiTest.FilePreprocessor.__add__ (   self,
  rhs 
)

Definition at line 359 of file GaudiTest.py.

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

Definition at line 346 of file GaudiTest.py.

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

Definition at line 344 of file GaudiTest.py.

345  def __processLine__(self, line):
return line

The documentation for this class was generated from the following file:
Generated at Wed Dec 4 2013 14:33:23 for Gaudi Framework, version v24r2 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004