Get a tree node and check if it is already present, if not, create it first
TreeNode tree_check_get_node( TreeNode & tr, LPCSTR lpcszTag, int nID = 0, LPCSTR lpcszAttribName = NULL, LPCSTR lpcszAttribVal = NULL )
found TreeNode, or returns created TreeNode if not found
EX1
void tree_check_get_node_ex1() { Tree tr; int nID = 0x0001; string strLabel = "Just a testing"; TreeNode trNode = tree_check_get_node(tr, "NewCreated", nID, STR_LABEL_ATTRIB, strLabel); out_tree(tr); }
tree_get_node
origin.h