HWRF  trunk@4391
Public Member Functions | Public Attributes | List of all members
confdoc.docbase Class Reference

Stores documentation for all configuration options and sections. More...

Detailed Description

Stores documentation for all configuration options and sections.

Definition at line 56 of file confdoc.py.

Inheritance diagram for confdoc.docbase:
confdoc.override confdoc.coredoc

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...
 

Constructor & Destructor Documentation

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.

Member Function Documentation

def confdoc.docbase.add_option (   self,
  section,
  option,
  ivalue,
  brief,
  detail,
  basename = None,
  replace = None 
)

Adds documentation for an option in a conf section.

Parameters
sectionThe conf section name
optionThe name of the option in that section
ivalueA shortened form of the option value
briefThe brief documentation
detailThe detailed documentation
basenameThe file basename
replaceIf 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.

Parameters
sectionThe conf section name
briefThe brief documentation
detailThe detailed documentation or None
replaceIf 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.

Parameters
basenamethe file that contains the block
briefthe brief documentation
detailthe detailed documentation

Definition at line 237 of file confdoc.py.

def confdoc.docbase.fileanch (   self,
  basename 
)

Returns the anchor for a configuration file.

Parameters
basenamethe 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.

Parameters
detailthe detailed description
Returns
A brief description, or None if no suitable description was found.

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.

Parameters
sectionThe conf file section name.
optionThe option name.
whereConfiguration 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.

Parameters
sa 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.

Parameters
sectionThe conf file section name.
whereConfiguration 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.

Parameters
sectionThe conf section name
incThe 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.

Parameters
basenameThe file basename
docThe documentation object, a subclass of docbase

Definition at line 77 of file confdoc.py.

Member Data Documentation

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().


The documentation for this class was generated from the following file: