| The Gaudi Framework v28r2p1 (f1a77ff4)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Public Attributes | List of all members
GaudiTesting.BaseTest.SortGroupOfLines Class Reference
Inheritance diagram for GaudiTesting.BaseTest.SortGroupOfLines:
[legend]
Collaboration diagram for GaudiTesting.BaseTest.SortGroupOfLines:
[legend]

## Public Member Functions
def | __init__ (self, exp)
def | __processFile__ (self, lines)
Public Member Functions inherited from GaudiTesting.BaseTest.FilePreprocessor
def | __processLine__ (self, line)
def | __processFile__ (self, lines)
def | __call__ (self, input)
def | __add__ (self, rhs)

## Public Attributes
| exp

## Detailed Description

    Sort group of lines matching a regular expression

Definition at line 755 of file BaseTest.py.

## Constructor & Destructor Documentation

def GaudiTesting.BaseTest.SortGroupOfLines.__init__ | ( |  | self,
|  |  | exp
| ) |  |

Definition at line 759 of file BaseTest.py.

759 def __init__(self, exp):
760 self.exp = exp if hasattr(exp, 'match') else re.compile(exp)
GaudiTesting.BaseTest.SortGroupOfLines.__init__
def __init__(self, exp)
Definition: BaseTest.py:759
GaudiTesting.BaseTest.SortGroupOfLines.exp
exp
Definition: BaseTest.py:760

## Member Function Documentation

def GaudiTesting.BaseTest.SortGroupOfLines.__processFile__ | ( |  | self,
|  |  | lines
| ) |  |

Definition at line 761 of file BaseTest.py.

761 def __processFile__(self, lines):
762 match = self.exp.match
763 output = []
764 group = []
765 for l in lines:
766 if match(l):
767 group.append(l)
768 else:
769 if group:
770 group.sort()
771 output.extend(group)
772 group = []
773 output.append(l)
774 return output
775
776 # Preprocessors for GaudiExamples
GaudiTesting.BaseTest.SortGroupOfLines.__processFile__
def __processFile__(self, lines)
Definition: BaseTest.py:761

## Member Data Documentation

GaudiTesting.BaseTest.SortGroupOfLines.exp

Definition at line 760 of file BaseTest.py.

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

- GaudiPolicy/python/GaudiTesting/BaseTest.py