GaudiTesting.BaseTest.LineSorter Class Reference

Special preprocessor sorting the list of strings (whitespace separated) that follow a signature on a single line. More...

Inheritance diagram for GaudiTesting.BaseTest.LineSorter:
Collaboration diagram for GaudiTesting.BaseTest.LineSorter:

Public Member Functions

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

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 723 of file BaseTest.py.

Constructor & Destructor Documentation

def GaudiTesting.BaseTest.LineSorter.__init__ (   self,
  signature 
)

Definition at line 724 of file BaseTest.py.

724  def __init__(self, signature):
725  self.signature = signature
726  self.siglen = len(signature)
def __init__(self, signature)
Definition: BaseTest.py:724
def GaudiTesting.BaseTest.LineSorter.__init__ (   self,
  signature 
)

Definition at line 724 of file BaseTest.py.

724  def __init__(self, signature):
725  self.signature = signature
726  self.siglen = len(signature)
def __init__(self, signature)
Definition: BaseTest.py:724

Member Function Documentation

def GaudiTesting.BaseTest.LineSorter.__processLine__ (   self,
  line 
)

Definition at line 727 of file BaseTest.py.

727  def __processLine__(self, line):
728  pos = line.find(self.signature)
729  if pos >=0:
730  line = line[:(pos+self.siglen)]
731  lst = line[(pos+self.siglen):].split()
732  lst.sort()
733  line += " ".join(lst)
734  return line
735 
736 # Preprocessors for GaudiExamples
def __processLine__(self, line)
Definition: BaseTest.py:727
def GaudiTesting.BaseTest.LineSorter.__processLine__ (   self,
  line 
)

Definition at line 727 of file BaseTest.py.

727  def __processLine__(self, line):
728  pos = line.find(self.signature)
729  if pos >=0:
730  line = line[:(pos+self.siglen)]
731  lst = line[(pos+self.siglen):].split()
732  lst.sort()
733  line += " ".join(lst)
734  return line
735 
736 # Preprocessors for GaudiExamples
def __processLine__(self, line)
Definition: BaseTest.py:727

Member Data Documentation

GaudiTesting.BaseTest.LineSorter.siglen

Definition at line 726 of file BaseTest.py.

GaudiTesting.BaseTest.LineSorter.signature

Definition at line 725 of file BaseTest.py.


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