Creating, Copying and Releasing a LVParseTree Handle
LVParseTree objects are fully copyable and assignable.
Functions
- H_PARSE_TREE LVParseTree_Create()
- H_PARSE_TREE LVParseTree_CreateFromCopy(H_PARSE_TREE Other)
- void LVParseTree_Copy (H_PARSE_TREE Tree, H_PARSE_TREE Other)
- void LVParseTree_Release (H_PARSE_TREE Tree)
Parameters
Tree
A handle to a parse tree being released or copied into
Other
A handle to a parse tree being copied.
Remarks
CreateFromCopy and Copy both perform deep copies on the handles in question. Both handles will have to be
released after either function call to release all allocated memory. Tree handles given to the user via
LV_SRE_CreateParseTree
must also be released.
Example
HPORT Port;
//open the port and do a decode
//...
//when the decode is finished,grab a parse tree handle
H_PARSE_TREE Tree = LV_SRE_CreateParseTree(Port, voicechannel, index);
//start using the tree.
//...
//When you are done with it, release it.
LVParseTree_Release(Tree);
See Also