Gaudi Framework, version v23r10

Home   Generated: Mon Sep 30 2013
 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 433 of file GaudiTest.py.

Constructor & Destructor Documentation

def GaudiTest.LineSorter.__init__ (   self,
  signature 
)

Definition at line 434 of file GaudiTest.py.

435  def __init__(self, signature):
436  self.signature = signature
self.siglen = len(signature)

Member Function Documentation

def GaudiTest.LineSorter.__processLine__ (   self,
  line 
)

Definition at line 437 of file GaudiTest.py.

438  def __processLine__(self, line):
439  pos = line.find(self.signature)
440  if pos >=0:
441  line = line[:(pos+self.siglen)]
442  lst = line[(pos+self.siglen):].split()
443  lst.sort()
444  line += " ".join(lst)
445  return line
446 
# Preprocessors for GaudiExamples

Member Data Documentation

GaudiTest.LineSorter.siglen

Definition at line 436 of file GaudiTest.py.

GaudiTest.LineSorter.signature

Definition at line 435 of file GaudiTest.py.


The documentation for this class was generated from the following file:
Generated at Mon Sep 30 2013 14:52:08 for Gaudi Framework, version v23r10 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004