2.3.1.96 GETN_USE
Name
GETN_USE
Declaration
#define GETN_USE(_TR_NAME) TreeNode _tmpNode = _TR_NAME; TreeNode _tmpSubNode; string _strTemp;
Remark
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
Parameters
- _TR_NAME
- [input] Treenode of the exist node
Return
Examples
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);
}
See Also
GETN_USE_CURR, GETN_TREE, GETN_BOX
Header to Include
GetNBox.h
Reference
|