Creating, Copying and Releasing a LVParseTree Handle

LVParseTree objects are fully copyable and assignable.

Functions

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

  1. HPORT Port;
  2.  
  3. //open the port and do a decode
  4. //...
  5. //when the decode is finished,grab a parse tree handle
  6.  
  7. H_PARSE_TREE Tree = LV_SRE_CreateParseTree(Port, voicechannel, index);
  8.  
  9. //start using the tree.
  10. //...
  11. //When you are done with it, release it.
  12. LVParseTree_Release(Tree);

See Also

© 2012 LumenVox LLC. All rights reserved.