| The Gaudi Framework v28r2-patches (bc4ad17a)

- 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 647 of file BaseTest.py.

## Member Function Documentation

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

Definition at line 668 of file BaseTest.py.

668 def __add__(self, rhs):
669 return FilePreprocessorSequence([self,rhs])
670
GaudiTesting.BaseTest.FilePreprocessor.__add__
def __add__(self, rhs)
Definition: BaseTest.py:668
GaudiTesting.BaseTest.FilePreprocessorSequence
Definition: BaseTest.py:671

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

Definition at line 658 of file BaseTest.py.

658 def __call__(self, input):
659 if hasattr(input,"__iter__"):
660 lines = input
661 mergeback = False
662 else:
663 lines = input.splitlines()
664 mergeback = True
665 output = self.__processFile__(lines)
666 if mergeback: output = '\n'.join(output)
667 return output
GaudiTesting.BaseTest.FilePreprocessor.__call__
def __call__(self, input)
Definition: BaseTest.py:658
GaudiTesting.BaseTest.FilePreprocessor.__processFile__
def __processFile__(self, lines)
Definition: BaseTest.py:652

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

Definition at line 652 of file BaseTest.py.

652 def __processFile__(self, lines):
653 output = []
654 for l in lines:
655 l = self.__processLine__(l)
656 if l: output.append(l)
657 return output
GaudiTesting.BaseTest.FilePreprocessor.__processLine__
def __processLine__(self, line)
Definition: BaseTest.py:650
GaudiTesting.BaseTest.FilePreprocessor.__processFile__
def __processFile__(self, lines)
Definition: BaseTest.py:652

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

Definition at line 650 of file BaseTest.py.

650 def __processLine__(self, line):
651 return line
GaudiTesting.BaseTest.FilePreprocessor.__processLine__
def __processLine__(self, line)
Definition: BaseTest.py:650

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

- GaudiPolicy/python/GaudiTesting/BaseTest.py