![]() |
![]()
| ![]() |
![]()
NAMEBlt_TreeGetToken - Grabs a token associated with existing tree data object. SYNOPSIS#include <bltTree.h> int Blt_TreeGetToken(interp, name, tokenPtr) ARGUMENTS
DESCRIPTIONThis procedure obtains a token to a C-based tree data object. The arguments are as follows:
A token for the tree data object is returned. Tree data objects can be shared. For example, the tree and hiertable commands may be accessing the same tree data object. Each client grabs a token that is associated with the tree. When all tokens are released (see Blt_TreeReleaseToken) the tree data object is automatically destroyed. RETURNSA standard Tcl result is returned. If TCL_ERROR is returned, then interp->result will contain an error message. The following errors may occur:
EXAMPLEThe following example allocated a token for an existing tree. Blt_Tree token; if (Blt_TreeGetToken(interp, "myTree", &token) != TCL_OK) { SEE ALSOTcl_TreeCreate, Tcl_TreeExists, Tcl_TreeReleaseToken
|