GETN_USE
#define GETN_USE(_TR_NAME) TreeNode _tmpNode = _TR_NAME; TreeNode _tmpSubNode; string _strTemp;
GETN_USE can direct reuse an already created treenode.
This macro type can only be used once in one function, otherwise it will create "duplicate declaration" compile error.
Can't use in one function of following marco in pairs too, GETN_NAMED_TREE2,GETN_NAMED_TREE,GETN_TREE,GETN_BOX
EX1
#include <GetNbox.h> void run_GETN_USE( TreeNode &trN ) { GETN_USE(trN) GETN_STR(Descript, "Tips", "Default read only text color") GETN_READ_ONLY_COLOR if(GetNBox(trN)) out_tree(trN); } void GETN_USE_ex1() { GETN_TREE(testTree) GETN_CHECK(FitAllCurves, "Fit All Curves", 0) GETN_BEGIN_BRANCH(Fit, "Fitting Options")//Match GETN_END_BRANCH GETN_CHECK(FixIntercept, "Fix Intercept", 0) GETN_CHECK(FixSlope, "Fix Slope", 0) GETN_END_BRANCH(Fit) //Match GETN_BEGIN_BRANCH GETN_NUM(Points, "Points", 20) run_GETN_USE(testTree); }
GETN_USE_CURR
GetNBox.h