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

Function garrow_day_millisecond_class_init

c_glib/arrow-glib/interval.cpp:106–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106static void
107garrow_day_millisecond_class_init(GArrowDayMillisecondClass *klass)
108{
109 auto gobject_class = G_OBJECT_CLASS(klass);
110
111 gobject_class->set_property = garrow_day_millisecond_set_property;
112 gobject_class->get_property = garrow_day_millisecond_get_property;
113
114 arrow::DayTimeIntervalType::DayMilliseconds day_millisecond;
115 GParamSpec *spec;
116 /**
117 * GArrowDayMillisecond:day:
118 *
119 * The day part value.
120 *
121 * Since: 8.0.0
122 */
123 spec = g_param_spec_int("day",
124 "Day",
125 "The day part value",
126 G_MININT32,
127 G_MAXINT32,
128 day_millisecond.days,
129 static_cast<GParamFlags>(G_PARAM_READWRITE));
130 g_object_class_install_property(gobject_class, PROP_DAY_MILLISECOND_DAY, spec);
131
132 /**
133 * GArrowDayMillisecond:millisecond:
134 *
135 * The millisecond part value.
136 *
137 * Since: 8.0.0
138 */
139 spec = g_param_spec_int("millisecond",
140 "Millisecond",
141 "The millisecond part value",
142 G_MININT32,
143 G_MAXINT32,
144 day_millisecond.milliseconds,
145 static_cast<GParamFlags>(G_PARAM_READWRITE));
146 g_object_class_install_property(gobject_class, PROP_DAY_MILLISECOND_MILLISECOND, spec);
147}
148
149/**
150 * garrow_day_millisecond_new:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected