Package PyFoam :: Package Applications :: Module PyFoamApplication :: Class PyFoamApplication
[hide private]
[frames] | no frames]

Class PyFoamApplication

source code

object --+
         |
        PyFoamApplication
Known Subclasses:
Comparator.Comparator, PlotWatcher.PlotWatcher, UtilityRunnerApp.UtilityRunnerApp, Decomposer.Decomposer, WriteDictionary.WriteDictionary, Runner.Runner, PlotRunner.PlotRunner, SteadyRunner.SteadyRunner, ReadDictionary.ReadDictionary

Instance Methods [hide private]
  __init__(self, description=None, usage=None, interspersed=False, nr=None)
  addOptions(self)
Add options to the parser
  run(self)
Run the real application
  error(self, *args)
Prints an error message and exits

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


Properties [hide private]

Inherited from object: __class__


Method Details [hide private]

__init__(self, description=None, usage=None, interspersed=False, nr=None)
(Constructor)

source code 
Parameters:
  • description - description of the command
  • usage - Usage
  • interspersed - Is the command line allowed to be interspersed (options after the arguments)
Overrides: object.__init__

addOptions(self)

source code 
Add options to the parser

run(self)

source code 
Run the real application

error(self, *args)

source code 
Prints an error message and exits
Parameters:
  • args - Arguments that are to be printed