Tree::Tree

Description

Constructor which initializes a tree from an XML file.


Constructor.

Syntax

Tree( LPCSTR File, int nType = 0 )

Tree( int nType = 0 )

Parameters

File
[input] file name
nType
[input] unuseful argument

nType
[input] unuseful argument

Return

Examples

EX1

void Tree_Tree_ex1()
{
    Tree myTree("c:\\xyz.xml");            
}


EX2

void Tree_Tree_ex2()
{
    Tree tr;  
    TreeNode tn1, tn2;
    tn1 = tr.AddNode("node1", 1);   // Add TreeNode tn1, tn2 to Tree tr. 
    tn2 = tr.AddNode("node2", 2);
    out_tree(tr);
}

Remark

See Also

Tree::Load

header to Include

origin.h