The Gaudi Framework  v33r0 (d5ea422b)
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 __call__ (self, input)
 
def __add__ (self, rhs)
 

Public Attributes

 signature
 
 siglen
 

Detailed Description

Definition at line 564 of file GaudiTest.py.

Constructor & Destructor Documentation

◆ __init__()

def GaudiTest.LineSorter.__init__ (   self,
  signature 
)

Definition at line 565 of file GaudiTest.py.

565  def __init__(self, signature):
566  self.signature = signature
567  self.siglen = len(signature)
568 

Member Function Documentation

◆ __processLine__()

def GaudiTest.LineSorter.__processLine__ (   self,
  line 
)

Reimplemented from GaudiTest.FilePreprocessor.

Definition at line 569 of file GaudiTest.py.

569  def __processLine__(self, line):
570  pos = line.find(self.signature)
571  if pos >= 0:
572  line = line[:(pos + self.siglen)]
573  lst = line[(pos + self.siglen):].split()
574  lst.sort()
575  line += " ".join(lst)
576  return line
577 
578 
579 # Preprocessors for GaudiExamples

Member Data Documentation

◆ siglen

GaudiTest.LineSorter.siglen

Definition at line 567 of file GaudiTest.py.

◆ signature

GaudiTest.LineSorter.signature

Definition at line 566 of file GaudiTest.py.


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