Gaudi Framework, version v21r6

Home   Generated: 11 Nov 2009

GaudiTest::LineSorter Class Reference

Inheritance diagram for GaudiTest::LineSorter:

Inheritance graph
[legend]
Collaboration diagram for GaudiTest::LineSorter:

Collaboration graph
[legend]

List of all members.


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.


Public Member Functions

def __init__
def __processLine__

Public Attributes

 signature
 siglen

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

Definition at line 420 of file GaudiTest.py.

Definition at line 421 of file GaudiTest.py.


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

Generated at Wed Nov 11 16:37:06 2009 for Gaudi Framework, version v21r6 by Doxygen version 1.5.6 written by Dimitri van Heesch, © 1997-2004