All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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:
Collaboration diagram for GaudiTest.LineSorter:

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

Constructor & Destructor Documentation

def GaudiTest.LineSorter.__init__ (   self,
  signature 
)

Definition at line 496 of file GaudiTest.py.

497  def __init__(self, signature):
498  self.signature = signature
self.siglen = len(signature)

Member Function Documentation

def GaudiTest.LineSorter.__processLine__ (   self,
  line 
)

Definition at line 499 of file GaudiTest.py.

500  def __processLine__(self, line):
501  pos = line.find(self.signature)
502  if pos >=0:
503  line = line[:(pos+self.siglen)]
504  lst = line[(pos+self.siglen):].split()
505  lst.sort()
506  line += " ".join(lst)
507  return line
508 
# Preprocessors for GaudiExamples

Member Data Documentation

GaudiTest.LineSorter.siglen

Definition at line 498 of file GaudiTest.py.

GaudiTest.LineSorter.signature

Definition at line 497 of file GaudiTest.py.


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