ClassesClasses | | Operators

serialize_templateT_serialize_templateSerializeTemplateSerializeTemplate (Operator)

Name

serialize_templateT_serialize_templateSerializeTemplateSerializeTemplate — Serialize a template.

Warning

serialize_templateserialize_templateSerializeTemplateSerializeTemplateSerializeTemplate is obsolete and is only provided for reasons of backward compatibility. New applications should use the shape-based or NCC-based operators instead.

Signature

serialize_template( : : TemplateID : SerializedItemHandle)

Herror T_serialize_template(const Htuple TemplateID, Htuple* SerializedItemHandle)

void SerializeTemplate(const HTuple& TemplateID, HTuple* SerializedItemHandle)

HSerializedItem HTemplate::SerializeTemplate() const

static void HOperatorSet.SerializeTemplate(HTuple templateID, out HTuple serializedItemHandle)

HSerializedItem HTemplate.SerializeTemplate()

Description

serialize_templateserialize_templateSerializeTemplateSerializeTemplateSerializeTemplate serializes the data of a template (see fwrite_serialized_itemfwrite_serialized_itemFwriteSerializedItemFwriteSerializedItemFwriteSerializedItem for an introduction of the basic principle of serialization). The same data that is written in a file by write_templatewrite_templateWriteTemplateWriteTemplateWriteTemplate is converted to a serialized item. The template is defined by the handle TemplateIDTemplateIDTemplateIDTemplateIDtemplateID. The serialized template is returned by the handle SerializedItemHandleSerializedItemHandleSerializedItemHandleSerializedItemHandleserializedItemHandle and can be deserialized by deserialize_templatedeserialize_templateDeserializeTemplateDeserializeTemplateDeserializeTemplate.

Execution Information

Parameters

TemplateIDTemplateIDTemplateIDTemplateIDtemplateID (input_control)  template HTemplate, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the template.

SerializedItemHandleSerializedItemHandleSerializedItemHandleSerializedItemHandleserializedItemHandle (output_control)  serialized_item HSerializedItem, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the serialized item.

Result

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

Possible Predecessors

create_templatecreate_templateCreateTemplateCreateTemplateCreateTemplate, create_template_rotcreate_template_rotCreateTemplateRotCreateTemplateRotCreateTemplateRot

Possible Successors

fwrite_serialized_itemfwrite_serialized_itemFwriteSerializedItemFwriteSerializedItemFwriteSerializedItem, send_serialized_itemsend_serialized_itemSendSerializedItemSendSerializedItemSendSerializedItem, deserialize_templatedeserialize_templateDeserializeTemplateDeserializeTemplateDeserializeTemplate

Module

Matching


ClassesClasses | | Operators