Gaudi Framework, version v25r0

Home   Generated: Mon Feb 17 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 487 of file GaudiTest.py.

Constructor & Destructor Documentation

def GaudiTest.LineSorter.__init__ (   self,
  signature 
)

Definition at line 488 of file GaudiTest.py.

489  def __init__(self, signature):
490  self.signature = signature
self.siglen = len(signature)

Member Function Documentation

def GaudiTest.LineSorter.__processLine__ (   self,
  line 
)

Definition at line 491 of file GaudiTest.py.

492  def __processLine__(self, line):
493  pos = line.find(self.signature)
494  if pos >=0:
495  line = line[:(pos+self.siglen)]
496  lst = line[(pos+self.siglen):].split()
497  lst.sort()
498  line += " ".join(lst)
499  return line
500 
# Preprocessors for GaudiExamples

Member Data Documentation

GaudiTest.LineSorter.siglen

Definition at line 490 of file GaudiTest.py.

GaudiTest.LineSorter.signature

Definition at line 489 of file GaudiTest.py.


The documentation for this class was generated from the following file:
Generated at Mon Feb 17 2014 14:38:20 for Gaudi Framework, version v25r0 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004