| # Gaudi Framework, version v22r4 |

Home |  | Generated: Fri Sep 2 2011

Public Member Functions | Public Attributes

# 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.

## Constructor & Destructor Documentation

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

Definition at line 420 of file GaudiTest.py.

    00421                                  :
    00422         self.signature = signature
            self.siglen = len(signature)

## Member Function Documentation

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

Reimplemented from GaudiTest::FilePreprocessor.

Definition at line 423 of file GaudiTest.py.

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

## Member Data Documentation

GaudiTest::LineSorter::siglen

Definition at line 420 of file GaudiTest.py.

GaudiTest::LineSorter::signature

Definition at line 420 of file GaudiTest.py.

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

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

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines