MCPcopy Create free account
hub / github.com/apache/arrow / garrow_replace_slice_options_class_init

Function garrow_replace_slice_options_class_init

c_glib/arrow-glib/compute.cpp:8687–8745  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8685}
8686
8687static void
8688garrow_replace_slice_options_class_init(GArrowReplaceSliceOptionsClass *klass)
8689{
8690 auto gobject_class = G_OBJECT_CLASS(klass);
8691
8692 gobject_class->set_property = garrow_replace_slice_options_set_property;
8693 gobject_class->get_property = garrow_replace_slice_options_get_property;
8694
8695 arrow::compute::ReplaceSliceOptions options;
8696
8697 GParamSpec *spec;
8698 /**
8699 * GArrowReplaceSliceOptions:start:
8700 *
8701 * Index to start slicing at.
8702 *
8703 * Since: 23.0.0
8704 */
8705 spec = g_param_spec_int64("start",
8706 "Start",
8707 "Index to start slicing at",
8708 G_MININT64,
8709 G_MAXINT64,
8710 options.start,
8711 static_cast<GParamFlags>(G_PARAM_READWRITE));
8712 g_object_class_install_property(gobject_class, PROP_REPLACE_SLICE_OPTIONS_START, spec);
8713
8714 /**
8715 * GArrowReplaceSliceOptions:stop:
8716 *
8717 * Index to stop slicing at.
8718 *
8719 * Since: 23.0.0
8720 */
8721 spec = g_param_spec_int64("stop",
8722 "Stop",
8723 "Index to stop slicing at",
8724 G_MININT64,
8725 G_MAXINT64,
8726 options.stop,
8727 static_cast<GParamFlags>(G_PARAM_READWRITE));
8728 g_object_class_install_property(gobject_class, PROP_REPLACE_SLICE_OPTIONS_STOP, spec);
8729
8730 /**
8731 * GArrowReplaceSliceOptions:replacement:
8732 *
8733 * String to replace the slice with.
8734 *
8735 * Since: 23.0.0
8736 */
8737 spec = g_param_spec_string("replacement",
8738 "Replacement",
8739 "String to replace the slice with",
8740 options.replacement.c_str(),
8741 static_cast<GParamFlags>(G_PARAM_READWRITE));
8742 g_object_class_install_property(gobject_class,
8743 PROP_REPLACE_SLICE_OPTIONS_REPLACEMENT,
8744 spec);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected