PropertyNode::dVal

ClassName

PropertyNode

AccessType

public

Name

dVal

Declaration

double dVal

Remark

Examples

EX1

void PropertyNode_dVal_ex1()
{
    Tree tr;
    TreeNode trN = tr.AddNode("node1",1);
    trN.dVal = 1.23;    //Assign double value to tree node
    out_tree(tr);
}

EX2

// Output the double value of the node.
void PropertyNode_dVal_ex2()
{
    Tree tr;
    TreeNode tn1;
    tn1 = tr.AddNumericNode(3.14, "node1", 1);
    out_tree(tr);
 
    out_double("dVal = " , tn1.dVal);   // Result: dVal = 3.14
}

Description

Double value of the node.

header to Include

origin.h

See Also

PropertyNode::dVals, PropertyNode::dVals2

Reference