| The Gaudi Framework v30r0 (c919700c)

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

## Constructor & Destructor Documentation

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

Definition at line 827 of file BaseTest.py.

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

## Member Function Documentation

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

Definition at line 830 of file BaseTest.py.

830 def __processFile__(self, lines):
831 match = self.exp.match
832 output = []
833 group = []
834 for l in lines:
835 if match(l):
836 group.append(l)
837 else:
838 if group:
839 group.sort()
840 output.extend(group)
841 group = []
842 output.append(l)
843 return output
844
845
846 # Preprocessors for GaudiExamples
GaudiTesting.BaseTest.SortGroupOfLines.__processFile__
def __processFile__(self, lines)
Definition: BaseTest.py:830

## Member Data Documentation

GaudiTesting.BaseTest.SortGroupOfLines.exp

Definition at line 828 of file BaseTest.py.

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

- GaudiPolicy/python/GaudiTesting/BaseTest.py