Modules | Files | Inheritance Tree | Inheritance Graph | Name Index | Config
module Synopsis::Config
class Base
Files: Synopsis/Config.py

The base class for configuration objects. If no config script is specified on the command line, then this class is instantiated directly.

Attributes:
parserThe parser config object to use, or None if no parsing should be done. This attribute is set by __init__()
linkerThe linker config object to use, or None if no linking should be done. This attribute is set by __init__()
formatterThe formatter config object to use, or None if no formatting should be done. This attribute is set by __init__()
See Also:
Base.__init__()


Classes Summary:
Parser
Contains nested classes for the different Parser modules. [Source]
Linker
Contains nested classes for the Linker modules. [Source]
Formatter
Contains nested classes for the different Formatter modules. [Source]

Operations Summary:
 __init__(self, argv)
Initialise the Config object. [Source]

Operation Details:
  __init__(self, argv)

Initialise the Config object. The argv dictionary is used to fill in the attributes 'parser', 'linker' and 'formatter'. For example, if the dictionary contains a parser argument, then its value is used to select the parser to use by setting self.parser to the config object for that parser. The modules are selected from the 'modules' dictionary attribute of the Parser, Linker and Formatter nested classes.

Parameters:
argv - A dictionary of keyword arguments passed to synopsis via -Wc