| The Gaudi Framework v32r1 (f65d50dc)

Public Member Functions | Public Attributes | List of all members
GaudiTest.LineSorter Class Reference
Inheritance diagram for GaudiTest.LineSorter:
[legend]
Collaboration diagram for GaudiTest.LineSorter:
[legend]

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

## Public Attributes
| signature
| siglen

## Detailed Description

Definition at line 553 of file GaudiTest.py.

## Constructor & Destructor Documentation

## ◆ __init__()

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

Definition at line 554 of file GaudiTest.py.

554 def __init__(self, signature):
555 self.signature = signature
556 self.siglen = len(signature)
557

## Member Function Documentation

## ◆ __processLine__()

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

Reimplemented from GaudiTest.FilePreprocessor.

Definition at line 558 of file GaudiTest.py.

558 def __processLine__(self, line):
559 pos = line.find(self.signature)
560 if pos >= 0:
561 line = line[:(pos + self.siglen)]
562 lst = line[(pos + self.siglen):].split()
563 lst.sort()
564 line += " ".join(lst)
565 return line
566
567
568 # Preprocessors for GaudiExamples
GaudiTest.__processLine__
__processLine__
Definition: GaudiTest.py:543

## Member Data Documentation

## ◆ siglen

GaudiTest.LineSorter.siglen

Definition at line 556 of file GaudiTest.py.

## ◆ signature

GaudiTest.LineSorter.signature

Definition at line 555 of file GaudiTest.py.

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

- GaudiPolicy/qmtest_classes/GaudiTest.py