Package PyFoam :: Package LogAnalysis :: Module FoamLogAnalyzer :: Class FoamLogAnalyzer
[show private | hide private]
[frames | no frames]

Class FoamLogAnalyzer

Known Subclasses:
EchoLogAnalyzer, StandardLogAnalyzer, UtilityAnalyzer

Base class for all analyzers

Administrates and calls a number of LogLineAnlayzers for each line
Method Summary
  __init__(self, progress)
  addAnalyzer(self, name, obj)
Adds an analyzer
  analyze(self, fh)
Analyzes a file (one line at a time)
  analyzeLine(self, line)
Calls all the anlyzers for a line
  getAnalyzer(self, name)
Get the LogLineAnalyzer name
  getDirectory(self)
Gets the output directory
  getTime(self)
Gets the current time
  goOn(self)
Checks with all the analyzers
  setDirectory(self, d)
Sets the output directory for all the analyzers

Method Details

__init__(self, progress=False)
(Constructor)

Parameters:
progress - Print time progress on console?

addAnalyzer(self, name, obj)

Adds an analyzer

obj - A LogLineAnalyzer name - the name of the analyzer

analyze(self, fh)

Analyzes a file (one line at a time)

fh - handle of the file

analyzeLine(self, line)

Calls all the anlyzers for a line

getAnalyzer(self, name)

Get the LogLineAnalyzer name

getDirectory(self)

Gets the output directory

getTime(self)

Gets the current time

goOn(self)

Checks with all the analyzers

If one analyzer returns False it returns False

setDirectory(self, d)

Sets the output directory for all the analyzers

Generated by Epydoc 2.1 on Tue Jan 17 17:06:22 2006 http://epydoc.sf.net