| The Gaudi Framework v27r1

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

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

Public Member Functions | Public Attributes | List of all members
GaudiTesting.BaseTest.LineSorter Class Reference

Special preprocessor sorting the list of strings (whitespace separated) that follow a signature on a single line. More...

Inheritance diagram for GaudiTesting.BaseTest.LineSorter:
[legend]
Collaboration diagram for GaudiTesting.BaseTest.LineSorter:
[legend]

## Public Member Functions
def | __init__ (self, signature)
def | __processLine__ (self, line)
Public Member Functions inherited from GaudiTesting.BaseTest.FilePreprocessor
def | __processLine__ (self, line)
def | __call__ (self, input)
def | __add__ (self, rhs)

## Public Attributes
| signature
| siglen

## Detailed Description

Special preprocessor sorting the list of strings (whitespace separated) that follow a signature on a single line.

Definition at line 751 of file BaseTest.py.

## Constructor & Destructor Documentation

def GaudiTesting.BaseTest.LineSorter.__init__ | ( |  | self,
|  |  | signature
| ) |  |

Definition at line 752 of file BaseTest.py.

752 def __init__(self, signature):
753 self.signature = signature
754 self.siglen = len(signature)
GaudiTesting.BaseTest.LineSorter.siglen
siglen
Definition: BaseTest.py:754
GaudiTesting.BaseTest.LineSorter.__init__
def __init__(self, signature)
Definition: BaseTest.py:752
GaudiTesting.BaseTest.LineSorter.signature
signature
Definition: BaseTest.py:753

## Member Function Documentation

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

Definition at line 755 of file BaseTest.py.

755 def __processLine__(self, line):
756 pos = line.find(self.signature)
757 if pos >=0:
758 line = line[:(pos+self.siglen)]
759 lst = line[(pos+self.siglen):].split()
760 lst.sort()
761 line += " ".join(lst)
762 return line
763
764 # Preprocessors for GaudiExamples
GaudiTesting.BaseTest.LineSorter.__processLine__
def __processLine__(self, line)
Definition: BaseTest.py:755
GaudiTesting.BaseTest.LineSorter.siglen
siglen
Definition: BaseTest.py:754
GaudiTesting.BaseTest.LineSorter.signature
signature
Definition: BaseTest.py:753

## Member Data Documentation

GaudiTesting.BaseTest.LineSorter.siglen

Definition at line 754 of file BaseTest.py.

GaudiTesting.BaseTest.LineSorter.signature

Definition at line 753 of file BaseTest.py.

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

- GaudiPolicy/python/GaudiTesting/BaseTest.py