Gaudi Framework, version v23r9

Home   Generated: Thu Jul 18 2013
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
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]

Public Member Functions

def __init__
 
def __processLine__
 
- Public Member Functions inherited from GaudiTest.FilePreprocessor
def __processLine__
 
def __call__
 
def __add__
 

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.

432  def __init__(self, signature):
433  self.signature = signature
self.siglen = len(signature)

Member Function Documentation

def GaudiTest.LineSorter.__processLine__ (   self,
  line 
)

Definition at line 434 of file GaudiTest.py.

435  def __processLine__(self, line):
436  pos = line.find(self.signature)
437  if pos >=0:
438  line = line[:(pos+self.siglen)]
439  lst = line[(pos+self.siglen):].split()
440  lst.sort()
441  line += " ".join(lst)
442  return line
443 
# Preprocessors for GaudiExamples

Member Data Documentation

GaudiTest.LineSorter.siglen

Definition at line 433 of file GaudiTest.py.

GaudiTest.LineSorter.signature

Definition at line 432 of file GaudiTest.py.


The documentation for this class was generated from the following file:
Generated at Thu Jul 18 2013 12:18:15 for Gaudi Framework, version v23r9 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004