Source code for PyFoam.Infrastructure.RunHook

"""Base class for all Run-Hooks"""

from PyFoam import configuration
from PyFoam.Error import notImplemented

[docs]class RunHook(object): """The actual class""" def __init__(self,runner,name): self.runner=runner self.name=name
[docs] def conf(self): """Quick access to the configuration""" return configuration().sectionProxy(self.name)
[docs] def execute(self): notImplemented(self,"execute")