All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 BaseTest.LineSorter:
Collaboration diagram for BaseTest.LineSorter:

Public Member Functions

def __init__
 
def __processLine__
 
- Public Member Functions inherited from BaseTest.FilePreprocessor
def __processLine__
 
def __call__
 
def __add__
 

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

Constructor & Destructor Documentation

def BaseTest.LineSorter.__init__ (   self,
  signature 
)

Definition at line 641 of file BaseTest.py.

642  def __init__(self, signature):
643  self.signature = signature
self.siglen = len(signature)

Member Function Documentation

def BaseTest.LineSorter.__processLine__ (   self,
  line 
)

Definition at line 644 of file BaseTest.py.

645  def __processLine__(self, line):
646  pos = line.find(self.signature)
647  if pos >=0:
648  line = line[:(pos+self.siglen)]
649  lst = line[(pos+self.siglen):].split()
650  lst.sort()
651  line += " ".join(lst)
652  return line
653 
# Preprocessors for GaudiExamples

Member Data Documentation

BaseTest.LineSorter.siglen

Definition at line 643 of file BaseTest.py.

BaseTest.LineSorter.signature

Definition at line 642 of file BaseTest.py.


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