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

Subclass of docbase for documenting files that override the base configuration. More...

Detailed Description

Subclass of docbase for documenting files that override the base configuration.

Definition at line 354 of file confdoc.py.

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

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...
 
- Public Member Functions inherited from confdoc.docbase
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

- Public Attributes inherited from confdoc.docbase
 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.override.__init__ (   self,
  basename,
  parent,
  filepart = None,
  replace = False 
)

Class override constructor.

Parameters
basenameThe file basename
parentThe parent docbase object that documents this group of conf files, or all conf options.
filepartThe modified filename for anchors. This should be the basename with "." replaced by "_".
replaceIf True, replace existing documentation when new values are found, otherwise ignore new docs

Definition at line 357 of file confdoc.py.

Member Function Documentation

def confdoc.override._secsec (   self,
  section,
  brief,
  detail 
)
protected

Generates the contents of the documentation section that documents the specified conf section.

Parameters
sectionthe conf section name
briefthe brief documentation
detailthe detailed documentation
Returns
the section text

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.

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

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

Parameters
basenamethe file that contains the block
briefthe brief documentation
detailthe 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.

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

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

Parameters
sectionThe conf section name
detaildetailed documentation, if available, and None otherwise
Returns
A tuple (brief,detail) containing any documentation found.

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.

Parameters
optionthe option of interest
sectionthe section that contains the option
Optionalthe 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.

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

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

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

Parameters
sectionThe conf section name
incThe contents of the @inc= option

Definition at line 410 of file confdoc.py.


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