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 | |
Build a string from self.content, to be overriden by sub-classes | |
creates a temporary file | |
opens the file. | |
Parse a string that is to be the content, to be overriden by the sub-classes | |
Undo all the manipulations done by PyFOAM | |
read the whole File into memory | |
write the whole File from memory | |
Inherited from Utilities | |
Execute the command cmd | |
Lists the files in a directory, but excludes certain names and files with certain endings | |
Writes a dummy header so OpenFOAM accepts the file as a dictionary |
Class Variable Summary | |
---|---|
str |
addedString = '//PyFoamAdded'
|
str |
removedString = '//PyFoamRemoved: '
|
Inherited from Utilities | |
list |
excludeNames = ['^.svn$', '~$']
|
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
|
goMatch(self, l, exp, out=None, stop=None)Read lines until a regular expression is matched
|
goTo(self, l, s, out=None, echoLast=False, stop=None)Read lines until a token is found
|
makeString(self)Build a string from self.content, to be overriden by sub-classes |
makeTemp(self)creates a temporary file |
openFile(self, keepContent=False, mode='r')opens the file. To be overloaded by derived classes |
parse(self, cnt)Parse a string that is to be the content, to be overriden by the sub-classes |
purgeFile(self)Undo all the manipulations done by PyFOAM Goes through the file and removes all lines that were added |
readFile(self)read the whole File into memory |
writeFile(self)write the whole File from memory |
Class Variable Details |
---|
addedString
|
removedString
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Mon Jan 22 23:52:48 2007 | http://epydoc.sf.net |