ClassesClasses | | Operators

serialize_measureT_serialize_measureSerializeMeasureSerializeMeasure (Operator)

Name

serialize_measureT_serialize_measureSerializeMeasureSerializeMeasure — Serialize a measure object.

Signature

serialize_measure( : : MeasureHandle : SerializedItemHandle)

Herror T_serialize_measure(const Htuple MeasureHandle, Htuple* SerializedItemHandle)

void SerializeMeasure(const HTuple& MeasureHandle, HTuple* SerializedItemHandle)

HSerializedItem HMeasure::SerializeMeasure() const

static void HOperatorSet.SerializeMeasure(HTuple measureHandle, out HTuple serializedItemHandle)

HSerializedItem HMeasure.SerializeMeasure()

Description

serialize_measureserialize_measureSerializeMeasureSerializeMeasureSerializeMeasure serializes the data of a measure object (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_measurewrite_measureWriteMeasureWriteMeasureWriteMeasure is converted to a serialized item. The measure object is defined by the handle MeasureHandleMeasureHandleMeasureHandleMeasureHandlemeasureHandle. The serialized measure object is returned by the handle SerializedItemHandleSerializedItemHandleSerializedItemHandleSerializedItemHandleserializedItemHandle and can be deserialized by deserialize_measuredeserialize_measureDeserializeMeasureDeserializeMeasureDeserializeMeasure.

For an explanation of the concept of 1D measuring see the introduction of chapter 1D Measuring.

Execution Information

This operator modifies the state of the following input parameter:

The value of this parameter may not be shared across multiple threads without external synchronization.

Parameters

MeasureHandleMeasureHandleMeasureHandleMeasureHandlemeasureHandle (input_control, state is modified)  measure_id HMeasure, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Measure object handle.

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_measureserialize_measureSerializeMeasureSerializeMeasureSerializeMeasure returns the value 2 (H_MSG_TRUE). If necessary, an exception is raised.

Possible Predecessors

gen_measure_rectangle2gen_measure_rectangle2GenMeasureRectangle2GenMeasureRectangle2GenMeasureRectangle2, gen_measure_arcgen_measure_arcGenMeasureArcGenMeasureArcGenMeasureArc

Possible Successors

fwrite_serialized_itemfwrite_serialized_itemFwriteSerializedItemFwriteSerializedItemFwriteSerializedItem, send_serialized_itemsend_serialized_itemSendSerializedItemSendSerializedItemSendSerializedItem, deserialize_measuredeserialize_measureDeserializeMeasureDeserializeMeasureDeserializeMeasure

See also

read_measureread_measureReadMeasureReadMeasureReadMeasure, write_measurewrite_measureWriteMeasureWriteMeasureWriteMeasure

Module

1D Metrology


ClassesClasses | | Operators