PyFoam.Applications.CommonTemplateBehaviour module

Common class with options that describe the behaviour of the template parser

class PyFoam.Applications.CommonTemplateBehaviour.CommonTemplateBehaviour[source]

Bases: object

__dict__ = mappingproxy({'__module__': 'PyFoam.Applications.CommonTemplateBehaviour', 'addOptions': <function CommonTemplateBehaviour.addOptions>, 'pickAssignmentDebug': <function CommonTemplateBehaviour.pickAssignmentDebug>, '__dict__': <attribute '__dict__' of 'CommonTemplateBehaviour' objects>, '__weakref__': <attribute '__weakref__' of 'CommonTemplateBehaviour' objects>, '__doc__': None})
__module__ = 'PyFoam.Applications.CommonTemplateBehaviour'
__weakref__

list of weak references to the object (if defined)

addOptions()[source]
pickAssignmentDebug(fName)[source]

Pick the correct comment prefix according to the file extension. Fall back to // for no/unknown extension (assuming foam-file)