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

Class FileBasisBackup

source code

                object --+        
                         |        
Basics.Utilities.Utilities --+    
                             |    
                     FileBasis --+
                                 |
                                FileBasisBackup
Known Subclasses:
ParsedParameterFile.ParsedParameterFile, BlockMesh.BlockMesh, ParameterFile.ParameterFile, ChemkinFiles.ChemkinReactionsFile, ChemkinFiles.ChemkinThermoFile, OldParsedParameterFile.ParsedParameterFile

A file with a backup-copy

Instance Methods [hide private]
  __init__(self, name, backup=False)
  restore(self)
if a backup-copy was made the file is restored from this

Inherited from FileBasis: closeFile, copyRest, goMatch, goTo, makeString, makeTemp, openFile, parse, purgeFile, readFile, writeFile

Inherited from Basics.Utilities.Utilities: execute, listDirectory, writeDictionaryHeader

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__


Class Variables [hide private]

Inherited from FileBasis: addedString, removedString

Inherited from Basics.Utilities.Utilities: excludeNames


Properties [hide private]

Inherited from object: __class__


Method Details [hide private]

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

source code 
Parameters:
  • name (str) - The name of the parameter file
  • backup (boolean) - create a backup-copy of the file
Overrides: FileBasis.__init__

restore(self)

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