Package PyFoam :: Package Execution :: Module AnalyzedRunner
[hide private]
[frames] | no frames]

Source Code for Module PyFoam.Execution.AnalyzedRunner

 1  """Command is run and output is analyzed""" 
 2   
 3  from BasicRunner import BasicRunner 
 4  from AnalyzedCommon import AnalyzedCommon 
 5   
 6  from PyFoam.LogAnalysis.FoamLogAnalyzer import FoamLogAnalyzer 
 7   
8 -class AnalyzedRunner(AnalyzedCommon,BasicRunner):
9 """The output of a command is analyzed while being run 10 11 Side effects (files written etc) depend on the analyzer""" 12
13 - def __init__(self,analyzer,argv=None,silent=False,logname="PyFoamSolve",server=False,lam=None):
14 """ @param analyzer: the analyzer for the output 15 argv, silent, logname, server, lam - see BasicRunner""" 16 BasicRunner.__init__(self,argv,silent,logname,server=server,lam=lam) 17 AnalyzedCommon.__init__(self,logname,analyzer)
18
19 - def lineHandle(self,line):
20 """Not to be called: calls the analyzer for the current line""" 21 AnalyzedCommon.lineHandle(self,line) 22 BasicRunner.lineHandle(self,line)
23