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

Constructor & Destructor Documentation

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

Definition at line 752 of file BaseTest.py.

752  def __init__(self, signature):
753  self.signature = signature
754  self.siglen = len(signature)
def __init__(self, signature)
Definition: BaseTest.py:752
def GaudiTesting.BaseTest.LineSorter.__init__ (   self,
  signature 
)

Definition at line 752 of file BaseTest.py.

752  def __init__(self, signature):
753  self.signature = signature
754  self.siglen = len(signature)
def __init__(self, signature)
Definition: BaseTest.py:752

Member Function Documentation

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

Definition at line 755 of file BaseTest.py.

755  def __processLine__(self, line):
756  pos = line.find(self.signature)
757  if pos >=0:
758  line = line[:(pos+self.siglen)]
759  lst = line[(pos+self.siglen):].split()
760  lst.sort()
761  line += " ".join(lst)
762  return line
763 
764 # Preprocessors for GaudiExamples
def __processLine__(self, line)
Definition: BaseTest.py:755
def GaudiTesting.BaseTest.LineSorter.__processLine__ (   self,
  line 
)

Definition at line 755 of file BaseTest.py.

755  def __processLine__(self, line):
756  pos = line.find(self.signature)
757  if pos >=0:
758  line = line[:(pos+self.siglen)]
759  lst = line[(pos+self.siglen):].split()
760  lst.sort()
761  line += " ".join(lst)
762  return line
763 
764 # Preprocessors for GaudiExamples
def __processLine__(self, line)
Definition: BaseTest.py:755

Member Data Documentation

GaudiTesting.BaseTest.LineSorter.siglen

Definition at line 754 of file BaseTest.py.

GaudiTesting.BaseTest.LineSorter.signature

Definition at line 753 of file BaseTest.py.


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