CppCondGraphToHtml

Writes out the Cpp Conditional processing graph as HTML.

class cpip.CppCondGraphToHtml.CcgVisitorToHtml(theHtmlStream)

Writing CppCondGraph visitor object.

__init__(theHtmlStream)

Constructor with an output XmlWrite.XhtmlStream.

Parameters:theHtmlStream (cpip.util.XmlWrite.XhtmlStream) – The HTML stream.
Returns:NoneType
visitPost(theCcgNode, theDepth)

Post-traversal call with a CppCondGraphNode and the integer depth in the tree.

Parameters:
Returns:

NoneType

visitPre(theCcgNode, theDepth)

Pre-traversal call with a CppCondGraphNode and the integer depth in the tree.

Parameters:
Returns:

NoneType

cpip.CppCondGraphToHtml.linkToIndex(theS, theIdxPath)

Write a back link to the index page.

Parameters:
Returns:

NoneType

cpip.CppCondGraphToHtml.processCppCondGrphToHtml(theLex, theHtmlPath, theTitle, theIdxPath)

Given the PpLexer write out the Cpp Cond Graph to the HTML file.

Parameters:
  • theLex (cpip.core.PpLexer.PpLexer) – The lexer.
  • theHtmlPath (str) – Path to output HTML file.
  • theTitle (str) – Title.
  • theIdxPath (str) – Path to index page for back links.
Returns:

NoneType