Home | Trees | Index | Help |
---|
Package PyFoam :: Package RunDictionary :: Module ParameterFile :: Class ParameterFile |
|
Utilities
--+ |FileBasis
--+ | ParameterFile
Method Summary | |
---|---|
name - The name of the parameter file backup - create a backup-copy of the file | |
creates a regular expression that looks for aparameter | |
reads the value of a parameter | |
writes the value of a parameter | |
if a backup-copy was made the file is restored from this | |
Inherited from FileBasis | |
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 |
Class Variable Summary | |
---|---|
Inherited from FileBasis | |
str |
addedString = '//PyFoamAdded'
|
str |
removedString = '//PyFoamRemoved: '
|
Method Details |
---|
__init__(self,
name,
backup=False)
name - The name of the parameter file backup - create a backup-copy
of the file
|
parameterPattern(self, parameter)creates a regular expression that looks for aparameter parameter - name of the parameter |
readParameter(self, parameter)reads the value of a parameter parameter - name of the parameter |
replaceParameter(self, parameter, newval)writes the value of a parameter parameter - name of the parameter newval - the new value |
restore(self)if a backup-copy was made the file is restored from this |
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Mon Aug 15 20:51:54 2005 | http://epydoc.sf.net |