| # Gaudi Framework, version v21r8 |

Home |  | Generated: 17 Mar 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 419 of file GaudiTest.py.

## Member Function Documentation

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

Definition at line 420 of file GaudiTest.py.

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

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

Reimplemented from GaudiTest::FilePreprocessor.

Definition at line 423 of file GaudiTest.py.

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

## Member Data Documentation

GaudiTest::LineSorter::signature

Definition at line 421 of file GaudiTest.py.

GaudiTest::LineSorter::siglen

Definition at line 422 of file GaudiTest.py.

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

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