Gaudi Framework, version v25r2

Home   Generated: Wed Jun 4 2014
 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 401 of file GaudiTest.py.

Member Function Documentation

def GaudiTest.FilePreprocessor.__add__ (   self,
  rhs 
)

Definition at line 419 of file GaudiTest.py.

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

Definition at line 406 of file GaudiTest.py.

407  def __call__(self, input):
408  if hasattr(input,"__iter__"):
409  lines = input
410  mergeback = False
411  else:
412  lines = input.splitlines()
413  mergeback = True
414  output = []
415  for l in lines:
416  l = self.__processLine__(l)
417  if l: output.append(l)
418  if mergeback: output = '\n'.join(output)
return output
def GaudiTest.FilePreprocessor.__processLine__ (   self,
  line 
)

Definition at line 404 of file GaudiTest.py.

405  def __processLine__(self, line):
return line

The documentation for this class was generated from the following file:
Generated at Wed Jun 4 2014 14:49:06 for Gaudi Framework, version v25r2 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004