| # Gaudi Framework, version v21r7 |

Home |  | Generated: 22 Jan 2010

# GaudiTest::LineSorter Class Reference

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

Inheritance diagram for GaudiTest::LineSorter:

[legend]
Collaboration diagram for GaudiTest::LineSorter:

[legend]

List of all members.

## Public Member Functions
def | __init__
def | __processLine__
## 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 418 of file GaudiTest.py.

## Member Function Documentation

def GaudiTest::LineSorter::__init__ | ( |  | self,
|  |  | signature |
| ) |  |  |

Definition at line 419 of file GaudiTest.py.

    00419                                  :
    00420         self.signature = signature
    00421         self.siglen = len(signature)
        def __processLine__(self, line):

def GaudiTest::LineSorter::__processLine__ | ( |  | self,
|  |  | line |
| ) |  |  |

Reimplemented from GaudiTest::FilePreprocessor.

Definition at line 422 of file GaudiTest.py.

    00422                                    :
    00423         pos = line.find(self.signature)
    00424         if pos >=0:
    00425             line = line[:(pos+self.siglen)]
    00426             lst = line[(pos+self.siglen):].split()
    00427             lst.sort()
    00428             line += " ".join(lst)
    00429         return line
    00430
    00431 # Preprocessors for GaudiExamples
    normalizeExamples = maskPointers + normalizeDate

## Member Data Documentation

GaudiTest::LineSorter::signature

Definition at line 420 of file GaudiTest.py.

GaudiTest::LineSorter::siglen

Definition at line 421 of file GaudiTest.py.

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

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v21r7/GaudiPolicy/qmtest_classes/GaudiTest.py