HWRF
trunk@4391
|
Stores documentation for all configuration options and sections. More...
Stores documentation for all configuration options and sections.
Definition at line 56 of file confdoc.py.
Public Member Functions | |
def | __init__ (self) |
docbase constructor More... | |
def | set_subdoc (self, basename, doc) |
Sets the documentation object that will contain file-specific information for the given file. More... | |
def | fileanch (self, basename) |
Returns the anchor for a configuration file. More... | |
def | secanch |
Returns the anchor for a specified section. More... | |
def | optanch |
Returns the anchor for a specified option. More... | |
def | make_brief (self, detail) |
Given a detailed description for something that has no brief description, return the brief description. More... | |
def | add_section |
Adds documentation for a conf section. More... | |
def | section_inc (self, section, inc) |
Sets the @inc list for a conf section. More... | |
def | file_block (self, basename, brief, detail) |
Adds a documentation block that is not associated with any section or option. More... | |
def | add_option |
Adds documentation for an option in a conf section. More... | |
def | print_doc (self, s) |
Writes Doxygen documentation to the stream "s" which is assumed to be a StringIO. More... | |
Public Attributes | |
sections | |
Mapping of section name to description. | |
secref | |
Mapping from section name to anchor name. | |
secrefset | |
secfile | |
Mapping from doxified filename to list of sections in that file. | |
secinc | |
Mapping from section name to the list of sections that are @inc included by that section. | |
seclist | |
List of section names, in the order they were first seen. | |
options | |
Mapping from option anchor name to the description of the option. | |
optbrief | |
Mapping from option anchor to the option's brief description. | |
secbrief | |
Mapping from section name to the section's brief description. | |
fileset | |
filelist | |
blocks | |
Mapping from file basename to the list of documentation blocks in that file that were not associated with any section or option. More... | |
def confdoc.docbase.__init__ | ( | self | ) |
docbase constructor
Initializes the documentation to an empty configuration suite. No sections, no options, no files, etc.
Definition at line 58 of file confdoc.py.
def confdoc.docbase.add_option | ( | self, | |
section, | |||
option, | |||
ivalue, | |||
brief, | |||
detail, | |||
basename = None , |
|||
replace = None |
|||
) |
Adds documentation for an option in a conf section.
section | The conf section name |
option | The name of the option in that section |
ivalue | A shortened form of the option value |
brief | The brief documentation |
detail | The detailed documentation |
basename | The file basename |
replace | If True, any existing documentation is replaced. Otherwise, it is ignored. |
Definition at line 252 of file confdoc.py.
def confdoc.docbase.add_section | ( | self, | |
section, | |||
brief, | |||
detail, | |||
replace = None |
|||
) |
Adds documentation for a conf section.
section | The conf section name |
brief | The brief documentation |
detail | The detailed documentation or None |
replace | If True, any existing documentation is replaced. Otherwise, it is ignored. |
Definition at line 205 of file confdoc.py.
Referenced by confdoc.docbase.print_doc().
def confdoc.docbase.file_block | ( | self, | |
basename, | |||
brief, | |||
detail | |||
) |
Adds a documentation block that is not associated with any section or option.
basename | the file that contains the block |
brief | the brief documentation |
detail | the detailed documentation |
Definition at line 237 of file confdoc.py.
def confdoc.docbase.fileanch | ( | self, | |
basename | |||
) |
Returns the anchor for a configuration file.
basename | the basename of the configuration file. |
Definition at line 118 of file confdoc.py.
Referenced by confdoc.docbase.optanch().
def confdoc.docbase.make_brief | ( | self, | |
detail | |||
) |
Given a detailed description for something that has no brief description, return the brief description.
detail | the detailed description |
Definition at line 190 of file confdoc.py.
Referenced by confdoc.docbase.add_section().
def confdoc.docbase.optanch | ( | self, | |
section, | |||
option, | |||
where = 'sec' |
|||
) |
Returns the anchor for a specified option.
section | The conf file section name. |
option | The option name. |
where | Configuration override file name. Default: "sec" which is the special name used for the page that stores information about ALL configuration options. |
Definition at line 132 of file confdoc.py.
Referenced by confdoc.docbase.add_option(), confdoc.override.find_optbrief(), and confdoc.docbase.optanch().
def confdoc.docbase.print_doc | ( | self, | |
s | |||
) |
Writes Doxygen documentation to the stream "s" which is assumed to be a StringIO.
s | a StringIO.StringIO to receive documentation. |
Definition at line 278 of file confdoc.py.
def confdoc.docbase.secanch | ( | self, | |
section, | |||
where = 'sec' |
|||
) |
Returns the anchor for a specified section.
section | The conf file section name. |
where | Configuration override file name. Default: "sec" which is the special name used for the page that stores information about ALL configuration options. |
Definition at line 123 of file confdoc.py.
Referenced by confdoc.docbase.add_section(), confdoc.docbase.optanch(), and confdoc.override.print_sec_opt().
def confdoc.docbase.section_inc | ( | self, | |
section, | |||
inc | |||
) |
Sets the @inc list for a conf section.
section | The conf section name |
inc | The contents of the @inc= option |
Definition at line 226 of file confdoc.py.
def confdoc.docbase.set_subdoc | ( | self, | |
basename, | |||
doc | |||
) |
Sets the documentation object that will contain file-specific information for the given file.
basename | The file basename |
doc | The documentation object, a subclass of docbase |
Definition at line 77 of file confdoc.py.
confdoc.docbase.blocks |
Mapping from file basename to the list of documentation blocks in that file that were not associated with any section or option.
These blocks are placed at the top of that file's documentation page.
Definition at line 75 of file confdoc.py.
Referenced by confdoc.docbase.file_block(), and confdoc.docbase.print_doc().