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: - theCcgNode (
cpip.core.CppCond.CppCondGraphNode) – Graph node. - theDepth (
int) – Node depth.
Returns: NoneType- theCcgNode (
-
visitPre(theCcgNode, theDepth)¶ Pre-traversal call with a CppCondGraphNode and the integer depth in the tree.
Parameters: - theCcgNode (
cpip.core.CppCond.CppCondGraphNode) – Graph node. - theDepth (
int) – Node depth.
Returns: NoneType- theCcgNode (
-
-
cpip.CppCondGraphToHtml.linkToIndex(theS, theIdxPath)¶ Write a back link to the index page.
Parameters: - theS (
cpip.util.XmlWrite.XhtmlStream) – The HTML stream. - theIdxPath (
str) – <insert documentation for argument>
Returns: NoneType- theS (
-
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- theLex (