Gaudi Framework, version v25r0

Home   Generated: Mon Feb 17 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 395 of file GaudiTest.py.

Member Function Documentation

def GaudiTest.FilePreprocessor.__add__ (   self,
  rhs 
)

Definition at line 413 of file GaudiTest.py.

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

Definition at line 400 of file GaudiTest.py.

401  def __call__(self, input):
402  if hasattr(input,"__iter__"):
403  lines = input
404  mergeback = False
405  else:
406  lines = input.splitlines()
407  mergeback = True
408  output = []
409  for l in lines:
410  l = self.__processLine__(l)
411  if l: output.append(l)
412  if mergeback: output = '\n'.join(output)
return output
def GaudiTest.FilePreprocessor.__processLine__ (   self,
  line 
)

Definition at line 398 of file GaudiTest.py.

399  def __processLine__(self, line):
return line

The documentation for this class was generated from the following file:
Generated at Mon Feb 17 2014 14:38:20 for Gaudi Framework, version v25r0 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004