Home | Trees | Indices | Help |
---|
|
object --+ | Basics.Utilities.Utilities --+ | FileBasis
|
|||
| __init__(self, name) | ||
|
openFile(self,
keepContent=False,
mode="r") opens the file. |
||
|
closeFile(self) closes the file |
||
|
readFile(self) read the whole File into memory |
||
|
writeFile(self) write the whole File from memory |
||
|
parse(self,
cnt) Parse a string that is to be the content, to be overriden by the sub-classes |
||
|
__str__(self) Build a string from self.content, to be overriden by sub-classes |
||
|
makeTemp(self) creates a temporary file |
||
|
goTo(self,
l,
s,
out=None,
echoLast=False,
stop=None) Read lines until a token is found |
||
|
goMatch(self,
l,
exp,
out=None,
stop=None) Read lines until a regular expression is matched |
||
|
copyRest(self,
l,
out) Copy the rest of the file |
||
|
purgeFile(self) Undo all the manipulations done by PyFOAM |
||
Inherited from Inherited from |
|
|||
|
removedString = '//PyFoamRemoved: ' Comment for lines that were overwritten by PyFoam-routines |
||
|
addedString = '//PyFoamAdded' Comment for lines that were added by PyFoam-routines |
||
Inherited from |
|
|||
Inherited from |
|
|
|
|
|
|
|
|
|
|
|
|
Undo all the manipulations done by PyFOAM Goes through the file and removes all lines that were added |
|
removedStringComment for lines that were overwritten by PyFoam-routines
|
addedStringComment for lines that were added by PyFoam-routines
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0alpha3 on Wed Aug 29 19:07:54 2007 | http://epydoc.sourceforge.net |