Gaudi Framework, version v21r9

Home   Generated: 3 May 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:

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

Collaboration graph
[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

Definition at line 421 of file GaudiTest.py.

Definition at line 422 of file GaudiTest.py.


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

Generated at Mon May 3 12:29:06 2010 for Gaudi Framework, version v21r9 by Doxygen version 1.5.6 written by Dimitri van Heesch, © 1997-2004