Gaudi Framework, version v22r0

Home   Generated: 9 Feb 2011

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.

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

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

Definition at line 422 of file GaudiTest.py.

Definition at line 421 of file GaudiTest.py.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated at Wed Feb 9 16:33:36 2011 for Gaudi Framework, version v22r0 by Doxygen version 1.6.2 written by Dimitri van Heesch, © 1997-2004