2.2.3.10.17 PropertyNode::strVals

ClassName

PropertyNode

AccessType

public

Name

strVals

Declaration

vector<string> strVals

Remark

Examples

EX1

void PropertyNode_strVals_ex1()
{
    Tree tr;
    TreeNode trN = tr.AddNode("node1",1);
 
    vector<string> vstrData = {"abc","efg","Origin"};
    trN.strVals = vstrData;    //Assign string values to tree node
 
    vector<string> vecCheck;
    vecCheck = trN.strVals; 
    
    for(int ii = 0; ii < vecCheck.GetSize(); ii++)
        printf("%s\t",vecCheck[ii]);
}

Description

Vector of string values of the node.

Header to Include

origin.h

See Also

PropertyNode::strVal

Reference