2.3.14 SET_BRANCH_CTRL_ATTRIBUTES


Name

SET_BRANCH_CTRL_ATTRIBUTES

Declaration

#define SET_BRANCH_CTRL_ATTRIBUTES(_ATTRIB)		_tmpNode.SetAttribute(STR_BRANCH_CTRL_ATTRIBUTES, _ATTRIB);

Remark

This macro set the branch option permanently

Parameters

_ATTRIB
[input] option for the branch, BCA_NO_CLOSE make the branch always open

Return

Examples

EX1

#include <GetNbox.h>

void SET_BRANCH_CTRL_ATTRIBUTES_ex1()
{
    GETN_BOX(trRoot)
    GETN_BEGIN_BRANCH(GoodDay, "Config")
        SET_BRANCH_CTRL_ATTRIBUTES(BCA_NO_CLOSE)
        GETN_CHECK(aaa, "aaa", false)
        GETN_CHECK(bbb, "bbb", false)
    GETN_END_BRANCH(GoodDay)
    if ( GetNBox(trRoot) )
        out_tree(trRoot);
    return;
}

Header to Included

GetNbox.h

Reference