Package PyFoam :: Package LogAnalysis :: Module FileLineAnalyzer
[hide private]
[frames] | no frames]

Source Code for Module PyFoam.LogAnalysis.FileLineAnalyzer

 1  """Line analyzer with output""" 
 2   
 3  import re 
 4   
 5  ##from LogLineAnalyzer import LogLineAnalyzer 
 6  ##from PyFoam.Basics.OutFileCollection import OutFileCollection 
 7   
 8  from GeneralLineAnalyzer import GeneralLineAnalyzer 
 9   
10 -class FileLineAnalyzer(GeneralLineAnalyzer):
11 """Base class for analyzers that write data to files 12 13 Just a stub to enable legacy code""" 14
15 - def __init__(self,titles=[]):
16 """ 17 @param titles: The titles of the data elements 18 """ 19 GeneralLineAnalyzer.__init__(self,doFiles=True,titles=titles)
20 21 22 ##class FileLineAnalyzer(LogLineAnalyzer): 23 ## """Base class for analyzers that write data to files""" 24 25 ## def __init__(self,titles=[]): 26 ## """ 27 ## @param titles: The titles of the data elements 28 ## """ 29 ## LogLineAnalyzer.__init__(self) 30 31 ## self.files=None 32 ## self.setTitles(titles) 33 34 ## def setTitles(self,titles): 35 ## """ 36 ## Sets the titles anew 37 ## @param titles: the new titles 38 ## """ 39 ## self.titles=titles 40 ## if self.files!=None: 41 ## self.files.setTitles(titles) 42 43 ## def setDirectory(self,oDir): 44 ## """Creates the OutFileCollection-object""" 45 ## self.files=OutFileCollection(oDir,titles=self.titles) 46