get_handle_tupleT_get_handle_tupleGetHandleTupleGetHandleTuple (Operator)

Name

get_handle_tupleT_get_handle_tupleGetHandleTupleGetHandleTuple — Retrieve a tuple associated with a key from a handle.

Signature

get_handle_tuple( : : Handle, Key : Tuple)

Herror T_get_handle_tuple(const Htuple Handle, const Htuple Key, Htuple* Tuple)

void GetHandleTuple(const HTuple& Handle, const HTuple& Key, HTuple* Tuple)

static void HOperatorSet.GetHandleTuple(HTuple handle, HTuple key, out HTuple tuple)

Description

get_handle_tupleget_handle_tupleGetHandleTupleGetHandleTupleGetHandleTuple retrieves a tuple associated with the KeyKeyKeyKeykey from HandleHandleHandleHandlehandle and returns it in TupleTupleTupleTupletuple. The list of keys supported by a handle can be queried with get_handle_paramget_handle_paramGetHandleParamGetHandleParamGetHandleParam.

Note that this operator is provided only for implementing generic debug and inspection mechanisms. The keys returned for certain handle types can change without notice. Additionally, some handle types might not be supported by this operator. Also, this operator is not optimized for performance. To obtain more reliable information about a handle in a program, it is strongly recommended to use the operators specialized for the particular handle type, such as get_object_model_3d_paramsget_object_model_3d_paramsGetObjectModel3dParamsGetObjectModel3dParamsGetObjectModel3dParams, get_shape_model_paramsget_shape_model_paramsGetShapeModelParamsGetShapeModelParamsGetShapeModelParams etc.

Execution Information

Parameters

HandleHandleHandleHandlehandle (input_control)  handle HHandle, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of which to get the key.

KeyKeyKeyKeykey (input_control)  string HTupleHTupleHtuple (string / integer) (string / int / long) (HString / Hlong) (char* / Hlong)

Key to get.

Number of elements: Key == 1

Restriction: length(Key) > 0

TupleTupleTupleTupletuple (output_control)  tuple(-array) HTupleHTupleHtuple (string / integer / real) (string / int / long / double) (HString / Hlong / double) (char* / Hlong / double)

Control value of the key.

Result

If the parameters are valid, the operator get_handle_tupleget_handle_tupleGetHandleTupleGetHandleTupleGetHandleTuple returns the value 2 (H_MSG_TRUE). If the handle is invalid or does not support the given key, or if the key references an iconic object instead of a tuple, an exception is raised.

Possible Predecessors

get_handle_paramget_handle_paramGetHandleParamGetHandleParamGetHandleParam

Alternatives

get_handle_objectget_handle_objectGetHandleObjectGetHandleObjectGetHandleObject

See also

get_handle_paramget_handle_paramGetHandleParamGetHandleParamGetHandleParam, get_handle_objectget_handle_objectGetHandleObjectGetHandleObjectGetHandleObject

Module

Foundation