HWRF
trunk@4391
|
Subclass of docbase for documenting files that override the base configuration. More...
Subclass of docbase for documenting files that override the base configuration.
Definition at line 354 of file confdoc.py.
Public Member Functions | |
def | __init__ |
Class override constructor. More... | |
def | secanch |
Returns the anchor for the specified section. More... | |
def | optanch |
Returns the anchor for a specified section and option. 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_section |
Adds documentation for a conf section. More... | |
def | add_option |
Adds documentation for an option in a conf section. More... | |
def | find_optbrief (self, section, option) |
Finds the brief documentation for a section. More... | |
def | find_secbrief (self, section) |
Finds the brief documentation for a section. More... | |
def | find_secdoc (self, section, detail) |
Finds the brief and detailed documentation for a section. More... | |
def | print_subdoc (self, s) |
Prints the documentation to the specified stream. More... | |
def | print_sec_opt (self, s) |
Prints the section and option part of the documentation to the given stream. More... | |
![]() | |
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... | |
Protected Member Functions | |
def | _secsec (self, section, brief, detail) |
Generates the contents of the documentation section that documents the specified conf section. More... | |
Additional Inherited Members | |
![]() | |
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.override.__init__ | ( | self, | |
basename, | |||
parent, | |||
filepart = None , |
|||
replace = False |
|||
) |
Class override constructor.
basename | The file basename |
parent | The parent docbase object that documents this group of conf files, or all conf options. |
filepart | The modified filename for anchors. This should be the basename with "." replaced by "_". |
replace | If True, replace existing documentation when new values are found, otherwise ignore new docs |
Definition at line 357 of file confdoc.py.
|
protected |
Generates the contents of the documentation section that documents the specified conf section.
section | the conf section name |
brief | the brief documentation |
detail | the detailed documentation |
Definition at line 397 of file confdoc.py.
def confdoc.override.add_option | ( | self, | |
section, | |||
option, | |||
ivalue, | |||
brief, | |||
detail, | |||
basename = None , |
|||
replace = True |
|||
) |
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 439 of file confdoc.py.
Referenced by confdoc.override.add_section().
def confdoc.override.add_section | ( | self, | |
section, | |||
brief, | |||
detail, | |||
replace = True |
|||
) |
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 427 of file confdoc.py.
def confdoc.override.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 418 of file confdoc.py.
def confdoc.override.find_optbrief | ( | self, | |
section, | |||
option | |||
) |
Finds the brief documentation for a section.
Checks first this documentation object, and then the parent, searching for something that has documentation for the option.
section | The conf section name |
option | The name of the option in that section |
Definition at line 455 of file confdoc.py.
Referenced by confdoc.override.print_sec_opt().
def confdoc.override.find_secbrief | ( | self, | |
section | |||
) |
Finds the brief documentation for a section.
Checks first this documentation object, and then the parent, searching for something that has documentation for a section.
section | The conf section name |
Definition at line 470 of file confdoc.py.
Referenced by confdoc.override.print_sec_opt().
def confdoc.override.find_secdoc | ( | self, | |
section, | |||
detail | |||
) |
Finds the brief and detailed documentation for a section.
Checks first this documentation object, and then the parent, searching for something that has documentation for a section.
section | The conf section name |
detail | detailed documentation, if available, and None otherwise |
Definition at line 485 of file confdoc.py.
Referenced by confdoc.override._secsec().
def confdoc.override.optanch | ( | self, | |
section, | |||
option, | |||
where = None |
|||
) |
Returns the anchor for a specified section and option.
option | the option of interest |
section | the section that contains the option |
Optional | the conf file basename |
Definition at line 386 of file confdoc.py.
def confdoc.override.print_sec_opt | ( | self, | |
s | |||
) |
Prints the section and option part of the documentation to the given stream.
s | The stream, ideally a StringIO.StringIO. |
Definition at line 513 of file confdoc.py.
Referenced by confdoc.override.print_subdoc(), and confdoc.coredoc.print_subdoc().
def confdoc.override.print_subdoc | ( | self, | |
s | |||
) |
Prints the documentation to the specified stream.
s | The stream, ideally a StringIO.StringIO. |
Definition at line 507 of file confdoc.py.
def confdoc.override.secanch | ( | self, | |
section, | |||
where = None |
|||
) |
Returns the anchor for the specified section.
section | The conf section name |
where | Optional: the conf file basename. |
Definition at line 377 of file confdoc.py.
def confdoc.override.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 410 of file confdoc.py.