LVParseTree objects are fully copyable and assignable.
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)
Tree
A handle to a parse tree being released or copied into
Other
A handle to a parse tree being copied.
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.
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);
Constructing, Copying and Destroying an LVParseTree Object (C++ API)
Complete Help Topic List | Speech Engine Product Information