Gaudi Framework, version v25r2

Home   Generated: Wed Jun 4 2014
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
GaudiTest.LineSorter Class Reference

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

Inheritance diagram for GaudiTest.LineSorter:
Inheritance graph
[legend]
Collaboration diagram for GaudiTest.LineSorter:
Collaboration graph
[legend]

Public Member Functions

def __init__
 
def __processLine__
 
- Public Member Functions inherited from GaudiTest.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 493 of file GaudiTest.py.

Constructor & Destructor Documentation

def GaudiTest.LineSorter.__init__ (   self,
  signature 
)

Definition at line 494 of file GaudiTest.py.

495  def __init__(self, signature):
496  self.signature = signature
self.siglen = len(signature)

Member Function Documentation

def GaudiTest.LineSorter.__processLine__ (   self,
  line 
)

Definition at line 497 of file GaudiTest.py.

498  def __processLine__(self, line):
499  pos = line.find(self.signature)
500  if pos >=0:
501  line = line[:(pos+self.siglen)]
502  lst = line[(pos+self.siglen):].split()
503  lst.sort()
504  line += " ".join(lst)
505  return line
506 
# Preprocessors for GaudiExamples

Member Data Documentation

GaudiTest.LineSorter.siglen

Definition at line 496 of file GaudiTest.py.

GaudiTest.LineSorter.signature

Definition at line 495 of file GaudiTest.py.


The documentation for this class was generated from the following file:
Generated at Wed Jun 4 2014 14:49:06 for Gaudi Framework, version v25r2 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004