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

Class ParsedParameterFile

source code

                object --+            
                         |            
Basics.Utilities.Utilities --+        
                             |        
           FileBasis.FileBasis --+    
                                 |    
         FileBasis.FileBasisBackup --+
                                     |
                                    ParsedParameterFile
Known Subclasses:
ParsedBoundaryDict, ParsedBlockMeshDict.ParsedBlockMeshDict

Parameterfile whose complete representation is read into memory, can be manipulated and afterwards written to disk

Instance Methods [hide private]
  __init__(self, name, backup=False, debug=False, boundaryDict=False)
  parse(self, content)
Constructs a representation of the file
  __getitem__(self, key)
  __setitem__(self, key, value)
  __str__(self)
Generates a string from the contents in memory Used to be called makeString

Inherited from FileBasis.FileBasisBackup: restore

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

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

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


Class Variables [hide private]

Inherited from FileBasis.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, debug=False, boundaryDict=False)
(Constructor)

source code 
Parameters:
  • name - The name of the parameter file
  • backup - create a backup-copy of the file
  • boundaryDict - the file to parse is a boundary file
Overrides: FileBasis.FileBasisBackup.__init__

parse(self, content)

source code 
Constructs a representation of the file
Overrides: FileBasis.FileBasis.parse

__getitem__(self, key)
(Indexing operator)

source code 
None

__setitem__(self, key, value)
(Index assignment operator)

source code 
None

__str__(self)
(Informal representation operator)

source code 
Generates a string from the contents in memory Used to be called makeString
Overrides: FileBasis.FileBasis.__str__