Gaudi Framework, version v23r3

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


Constructor & Destructor Documentation

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

Definition at line 431 of file GaudiTest.py.

00432                                  :
00433         self.signature = signature
        self.siglen = len(signature)

Member Function Documentation

def GaudiTest::LineSorter::__processLine__ (   self,
  line 
)

Reimplemented from GaudiTest::FilePreprocessor.

Definition at line 434 of file GaudiTest.py.

00435                                    :
00436         pos = line.find(self.signature)
00437         if pos >=0:
00438             line = line[:(pos+self.siglen)]
00439             lst = line[(pos+self.siglen):].split()
00440             lst.sort()
00441             line += " ".join(lst)
00442         return line
00443 
# Preprocessors for GaudiExamples

Member Data Documentation

Definition at line 431 of file GaudiTest.py.

Definition at line 431 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 12:30:23 for Gaudi Framework, version v23r3 by Doxygen version 1.7.2 written by Dimitri van Heesch, © 1997-2004