【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.2.3.17.34 TreeNode::Reset
Contents
Description
Removes all the children and values of a node or a tree, and optionally all attributes
Syntax
void Reset( BOOL bKeepAttributes = false )
Parameters
- bKeepAttributes
- [Input]false, will remove the node's attributes as well
Return
Examples
EX1
void TreeNode_Reset_ex1() { Tree tr; TreeNode tn1; tn1 = tr.AddTextNode("abc", "node1", 1); tr.SetAttribute("NodeID", 5); out_tree(tr); tr.Reset(true); //If true, the attribute ID is 5 out_tree(tr); int ID; if ( tr.GetAttribute("NodeID", ID) ) printf("the attribute ID is %d", ID); }
Remark
See Also
Header to Include
origin.h