The Gaudi Framework  v29r5 (37229091)
GaudiTest.LineSorter Class Reference
Inheritance diagram for GaudiTest.LineSorter:
Collaboration diagram for GaudiTest.LineSorter:

Public Member Functions

def __init__ (self, signature)
 
def __processLine__ (self, line)
 
- Public Member Functions inherited from GaudiTest.FilePreprocessor
def __processLine__ (self, line)
 
def __call__ (self, input)
 
def __add__ (self, rhs)
 

Public Attributes

 signature
 
 siglen
 

Detailed Description

Definition at line 540 of file GaudiTest.py.

Constructor & Destructor Documentation

def GaudiTest.LineSorter.__init__ (   self,
  signature 
)

Definition at line 541 of file GaudiTest.py.

541  def __init__(self, signature):
542  self.signature = signature
543  self.siglen = len(signature)
544 
def __init__(self, signature)
Definition: GaudiTest.py:541

Member Function Documentation

def GaudiTest.LineSorter.__processLine__ (   self,
  line 
)

Definition at line 545 of file GaudiTest.py.

545  def __processLine__(self, line):
546  pos = line.find(self.signature)
547  if pos >= 0:
548  line = line[:(pos + self.siglen)]
549  lst = line[(pos + self.siglen):].split()
550  lst.sort()
551  line += " ".join(lst)
552  return line
553 
554 
555 # Preprocessors for GaudiExamples
def __processLine__(self, line)
Definition: GaudiTest.py:545

Member Data Documentation

GaudiTest.LineSorter.siglen

Definition at line 543 of file GaudiTest.py.

GaudiTest.LineSorter.signature

Definition at line 542 of file GaudiTest.py.


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