Package PyFoam :: Package Basics :: Module BasicFile :: Class BasicFile
[show private | hide private]
[frames | no frames]

Class BasicFile

Known Subclasses:
OutputFile

File for data output

The format of the file is: one data-set per line Values are separated by tabs

The file is created the first time it is written
Method Summary
  __init__(self, name)
name - name of the file
  close(self)
close the file
  getHandle(self)
get the file-handle.
  outputAtEnd(self)
A hook for outputting stuff at the end of the file
  outputAtLineEnd(self)
A hook for outputting stuff at the end of each line
  outputAtLineStart(self)
A hook for outputting stuff at the start of each line
  outputAtStart(self)
A hook for outputting stuff at the beginning of the file
  writeLine(self, data)
write a data set

Method Details

__init__(self, name)
(Constructor)

name - name of the file

close(self)

close the file

getHandle(self)

get the file-handle. File is created and opened if it wasn't opened before

outputAtEnd(self)

A hook for outputting stuff at the end of the file

outputAtLineEnd(self)

A hook for outputting stuff at the end of each line

outputAtLineStart(self)

A hook for outputting stuff at the start of each line

outputAtStart(self)

A hook for outputting stuff at the beginning of the file

writeLine(self, data)

write a data set

data - a tuple with the data-set

Generated by Epydoc 2.1 on Mon Jan 22 23:52:48 2007 http://epydoc.sf.net