| The Gaudi Framework v30r0 (c919700c)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | List of all members
GaudiTesting.BaseTest.FilePreprocessor Class Reference
Inheritance diagram for GaudiTesting.BaseTest.FilePreprocessor:
[legend]

## Public Member Functions
def | __processLine__ (self, line)
def | __processFile__ (self, lines)
def | __call__ (self, input)
def | __add__ (self, rhs)

## Detailed Description

    Base class for a callable that takes a file and returns a modified
        version of it.

Definition at line 685 of file BaseTest.py.

## Member Function Documentation

def GaudiTesting.BaseTest.FilePreprocessor.__add__ | ( |  | self,
|  |  | rhs
| ) |  |

Definition at line 713 of file BaseTest.py.

713 def __add__(self, rhs):
714 return FilePreprocessorSequence([self, rhs])
715
716
GaudiTesting.BaseTest.FilePreprocessor.__add__
def __add__(self, rhs)
Definition: BaseTest.py:713
GaudiTesting.BaseTest.FilePreprocessorSequence
Definition: BaseTest.py:717

def GaudiTesting.BaseTest.FilePreprocessor.__call__ | ( |  | self,
|  |  | input
| ) |  |

Definition at line 701 of file BaseTest.py.

701 def __call__(self, input):
702 if hasattr(input, "__iter__"):
703 lines = input
704 mergeback = False
705 else:
706 lines = input.splitlines()
707 mergeback = True
708 output = self.__processFile__(lines)
709 if mergeback:
710 output = '\n'.join(output)
711 return output
712
GaudiTesting.BaseTest.FilePreprocessor.__call__
def __call__(self, input)
Definition: BaseTest.py:701
GaudiTesting.BaseTest.FilePreprocessor.__processFile__
def __processFile__(self, lines)
Definition: BaseTest.py:693

def GaudiTesting.BaseTest.FilePreprocessor.__processFile__ | ( |  | self,
|  |  | lines
| ) |  |

Definition at line 693 of file BaseTest.py.

693 def __processFile__(self, lines):
694 output = []
695 for l in lines:
696 l = self.__processLine__(l)
697 if l:
698 output.append(l)
699 return output
700
GaudiTesting.BaseTest.FilePreprocessor.__processLine__
def __processLine__(self, line)
Definition: BaseTest.py:690
GaudiTesting.BaseTest.FilePreprocessor.__processFile__
def __processFile__(self, lines)
Definition: BaseTest.py:693

def GaudiTesting.BaseTest.FilePreprocessor.__processLine__ | ( |  | self,
|  |  | line
| ) |  |

Definition at line 690 of file BaseTest.py.

690 def __processLine__(self, line):
691 return line
692
GaudiTesting.BaseTest.FilePreprocessor.__processLine__
def __processLine__(self, line)
Definition: BaseTest.py:690

The documentation for this class was generated from the following file:

- GaudiPolicy/python/GaudiTesting/BaseTest.py