AddTree
Adds a Tree Object to a serializable Internal Tree Manager
int AddTree( LPCSTR lpcszName, const TreeNode & tr )
returns the number of trees in the manager
EX1
//Add tree to the project and output the tree. void Project_AddTree_Ex1() { string strTreeName = "MyTree"; Tree tr; tr.SetAttribute(STR_LABEL_ATTRIB, strTreeName); tr.node1.nVal = 1234; tr.node2.strVal = "abcd"; int nTree = Project.AddTree(strTreeName, tr); TreeNode trGet; BOOL bRet = Project.GetTree(strTreeName, trGet); if(!trGet.IsValid()) out_str("Error!"); else out_tree(trGet); }
Project::GetTreeNames, Project::DeleteTree, Project::GetTree
origin.h