Operator Reference

deserialize_component_modelT_deserialize_component_modelDeserializeComponentModelDeserializeComponentModeldeserialize_component_model (Operator)

deserialize_component_modelT_deserialize_component_modelDeserializeComponentModelDeserializeComponentModeldeserialize_component_model — Deserialize a serialized component model.

Warning

deserialize_component_modeldeserialize_component_modelDeserializeComponentModelDeserializeComponentModeldeserialize_component_model is obsolete and is only provided for reasons of backward compatibility. The operator will be removed with HALCON 26.11.

Signature

deserialize_component_model( : : SerializedItemHandle : ComponentModelID)

Herror T_deserialize_component_model(const Htuple SerializedItemHandle, Htuple* ComponentModelID)

void DeserializeComponentModel(const HTuple& SerializedItemHandle, HTuple* ComponentModelID)

void HComponentModel::DeserializeComponentModel(const HSerializedItem& SerializedItemHandle)

static void HOperatorSet.DeserializeComponentModel(HTuple serializedItemHandle, out HTuple componentModelID)

void HComponentModel.DeserializeComponentModel(HSerializedItem serializedItemHandle)

def deserialize_component_model(serialized_item_handle: HHandle) -> HHandle

Description

deserialize_component_modeldeserialize_component_modelDeserializeComponentModelDeserializeComponentModeldeserialize_component_model deserializes a component model, that was serialized by serialize_component_modelserialize_component_modelSerializeComponentModelSerializeComponentModelserialize_component_model (see fwrite_serialized_itemfwrite_serialized_itemFwriteSerializedItemFwriteSerializedItemfwrite_serialized_item for an introduction of the basic principle of serialization). The serialized component model is defined by the handle SerializedItemHandleSerializedItemHandleSerializedItemHandleserializedItemHandleserialized_item_handle. The deserialized values are stored in an automatically created component model with the handle SerializedItemHandleSerializedItemHandleSerializedItemHandleserializedItemHandleserialized_item_handle.

Execution Information

  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).
  • Multithreading scope: global (may be called from any thread).
  • Processed without parallelization.

Parameters

SerializedItemHandleSerializedItemHandleSerializedItemHandleserializedItemHandleserialized_item_handle (input_control)  serialized_item HSerializedItem, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the serialized item.

ComponentModelIDComponentModelIDComponentModelIDcomponentModelIDcomponent_model_id (output_control)  component_model HComponentModel, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the component model.

Result

If the parameters are valid, the operator deserialize_component_modeldeserialize_component_modelDeserializeComponentModelDeserializeComponentModeldeserialize_component_model returns the value 2 ( H_MSG_TRUE) . If necessary, an exception is raised.

Module

Matching