| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

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

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

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
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]

## Public Member Functions
def | __init__
def | __processLine__
Public Member Functions inherited from GaudiTest.FilePreprocessor
def | __processLine__
def | __call__
def | __add__

## 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 487 of file GaudiTest.py.

## Constructor & Destructor Documentation

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

Definition at line 488 of file GaudiTest.py.

488
489 def __init__(self, signature):
490 self.signature = signature
self.siglen = len(signature)

## Member Function Documentation

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

Definition at line 491 of file GaudiTest.py.

491
492 def __processLine__(self, line):
493 pos = line.find(self.signature)
494 if pos >=0:
495 line = line[:(pos+self.siglen)]
496 lst = line[(pos+self.siglen):].split()
497 lst.sort()
498 line += " ".join(lst)
499 return line
500
# Preprocessors for GaudiExamples

## Member Data Documentation

GaudiTest.LineSorter.siglen

Definition at line 490 of file GaudiTest.py.

GaudiTest.LineSorter.signature

Definition at line 489 of file GaudiTest.py.

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

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