Gaudi Framework, version v23r2

Home   Generated: Thu Jun 28 2012
Public Member Functions | Public Attributes

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.


Constructor & Destructor Documentation

def GaudiTest::LineSorter::__init__ (   self,
  signature 
)

Definition at line 420 of file GaudiTest.py.

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

Member Function Documentation

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

Definition at line 420 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 Thu Jun 28 2012 23:27:52 for Gaudi Framework, version v23r2 by Doxygen version 1.7.2 written by Dimitri van Heesch, © 1997-2004