Home | Trees | Index | Help |
---|
Package PyFoam :: Package Execution :: Module BasicWatcher :: Class BasicWatcher |
|
AnalyzedWatcher
,
GnuplotWatcher
,
StepAnalyzedWatcher
Base class for watching the output of commands
Works like the UNIX-command 'tail -f <file>': the last lines of the file are output. If the file grows then these lines are output as they arriveMethod Summary | |
---|---|
| |
Return the current size (in bytes) of the file | |
called every time a new line is read | |
Reads the file and does the processing | |
to be called before the program is started | |
called after the program has stopped | |
called when the first line is output |
Method Details |
---|
__init__(self,
filename,
silent=False,
tailLength=1000,
sleep=0.10000000000000001)
|
getSize(self)
|
lineHandle(self, line)called every time a new line is read |
start(self)Reads the file and does the processing |
startHandle(self)to be called before the program is started |
stopHandle(self)called after the program has stopped |
tailingHandle(self)called when the first line is output |
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Mon Jan 22 23:52:48 2007 | http://epydoc.sf.net |