Home | Trees | Index | Help |
---|
Package PyFoam :: Package RunDictionary :: Module FileBasis :: Class FileBasis |
|
Utilities
--+
|
FileBasis
FileBasisBackup
,
SolutionFile
Method Summary | |
---|---|
name - Name of the file | |
closes the file | |
Copy the rest of the file | |
Read lines until a regular expression is matched | |
Read lines until a token is found | |
creates a temporary file | |
opens the file. | |
Undo all the manipulations done by PyFOAM | |
Inherited from Utilities | |
Execute the command cmd | |
Writes a dummy header so OpenFOAM accepts the file as a dictionary |
Class Variable Summary | |
---|---|
str |
addedString = '//PyFoamAdded'
|
str |
removedString = '//PyFoamRemoved: '
|
Method Details |
---|
__init__(self,
name)
name - Name of the file
|
closeFile(self)closes the file |
copyRest(self, l, out)Copy the rest of the file l - a LineReader object out - filehandle to echo the lines to |
goMatch(self, l, exp, out=None)Read lines until a regular expression is matched l - a LineReader object exp - the expression to look for out - filehandle to echo the lines to |
goTo(self, l, s, out=None, echoLast=False)Read lines until a token is found l - a LineReader object s - the string to look for out - filehandle to echo the lines to echoLast - echo the line with the string |
makeTemp(self)creates a temporary file |
openFile(self)opens the file. To be overloaded by derived classes |
purgeFile(self)Undo all the manipulations done by PyFOAM Goes through the file and removes all lines that were added |
Class Variable Details |
---|
addedString
|
removedString
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Mon Jan 16 15:32:11 2006 | http://epydoc.sf.net |