The Gaudi Framework  v31r0 (aeb156f0)
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 553 of file GaudiTest.py.

Constructor & Destructor Documentation

def GaudiTest.LineSorter.__init__ (   self,
  signature 
)

Definition at line 554 of file GaudiTest.py.

554  def __init__(self, signature):
555  self.signature = signature
556  self.siglen = len(signature)
557 
def __init__(self, signature)
Definition: GaudiTest.py:554

Member Function Documentation

def GaudiTest.LineSorter.__processLine__ (   self,
  line 
)

Definition at line 558 of file GaudiTest.py.

558  def __processLine__(self, line):
559  pos = line.find(self.signature)
560  if pos >= 0:
561  line = line[:(pos + self.siglen)]
562  lst = line[(pos + self.siglen):].split()
563  lst.sort()
564  line += " ".join(lst)
565  return line
566 
567 
568 # Preprocessors for GaudiExamples
def __processLine__(self, line)
Definition: GaudiTest.py:558

Member Data Documentation

GaudiTest.LineSorter.siglen

Definition at line 556 of file GaudiTest.py.

GaudiTest.LineSorter.signature

Definition at line 555 of file GaudiTest.py.


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