Package PyFoam :: Package RunDictionary :: Module FileBasis :: Class FileBasisBackup
[show private | hide private]
[frames | no frames]

Class FileBasisBackup

Utilities --+    
            |    
    FileBasis --+
                |
               FileBasisBackup

Known Subclasses:
BlockMesh, ParameterFile

A file with a backup-copy
Method Summary
  __init__(self, name, backup)
  restore(self)
if a backup-copy was made the file is restored from this
    Inherited from FileBasis
  closeFile(self)
closes the file
  copyRest(self, l, out)
Copy the rest of the file
  goMatch(self, l, exp, out, stop)
Read lines until a regular expression is matched
  goTo(self, l, s, out, echoLast, stop)
Read lines until a token is found
  makeTemp(self)
creates a temporary file
  openFile(self)
opens the file.
  purgeFile(self)
Undo all the manipulations done by PyFOAM
    Inherited from Utilities
  execute(self, cmd)
Execute the command cmd
  writeDictionaryHeader(self, f)
Writes a dummy header so OpenFOAM accepts the file as a dictionary

Class Variable Summary
    Inherited from FileBasis
str addedString = '//PyFoamAdded'
str removedString = '//PyFoamRemoved: '

Method Details

__init__(self, name, backup=False)
(Constructor)

Parameters:
name - The name of the parameter file
           (type=str)
backup - create a backup-copy of the file
           (type=boolean)
Overrides:
PyFoam.RunDictionary.FileBasis.FileBasis.__init__

restore(self)

if a backup-copy was made the file is restored from this

Generated by Epydoc 2.1 on Tue Jan 24 14:01:23 2006 http://epydoc.sf.net