Quick display of a tree, shows the tagName or label attribute, the value of Text are shown for leaf node.
bool out_tree(TreeNode& tr, bool bShowLine = true, bool bAlwaysShowTagName = false)
true if given tree is a valid TreeNode, otherwise false
EX1
void out_tree_ex1() { Tree tr; tr.Grade.Math.dVal = 90.5; tr.Grade.English.dVal = 95.5; bool bShowLine = false; bool bAlwaysShowTagName = true; out_tree(tr, bShowLine, bAlwaysShowTagName ); }
EX2
void out_tree_ex2() { GraphPage gp; if (gp.Create("Origin")) { TreeNode tnFormat = gp.GetFormat(); bool bShowLine = true; bool bAlwaysShowTagName = true; out_tree(tnFormat, bShowLine, bAlwaysShowTagName); } }
origin.h