| 369 | } |
| 370 | |
| 371 | static void |
| 372 | garrow_csv_write_options_set_property(GObject *object, |
| 373 | guint prop_id, |
| 374 | const GValue *value, |
| 375 | GParamSpec *pspec) |
| 376 | { |
| 377 | auto priv = GARROW_CSV_WRITE_OPTIONS_GET_PRIVATE(object); |
| 378 | |
| 379 | switch (prop_id) { |
| 380 | case PROP_CSV_WRITE_OPTIONS_INCLUDE_HEADER: |
| 381 | priv->write_options.include_header = g_value_get_boolean(value); |
| 382 | break; |
| 383 | case PROP_CSV_WRITE_OPTIONS_BATCH_SIZE: |
| 384 | priv->write_options.batch_size = g_value_get_int(value); |
| 385 | break; |
| 386 | case PROP_CSV_WRITE_OPTIONS_DELIMITER: |
| 387 | priv->write_options.delimiter = g_value_get_schar(value); |
| 388 | break; |
| 389 | case PROP_CSV_WRITE_OPTIONS_NULL_STRING: |
| 390 | priv->write_options.null_string = g_value_get_string(value); |
| 391 | break; |
| 392 | case PROP_CSV_WRITE_OPTIONS_EOL: |
| 393 | priv->write_options.eol = g_value_get_string(value); |
| 394 | break; |
| 395 | case PROP_CSV_WRITE_OPTIONS_QUOTING_STYLE: |
| 396 | priv->write_options.quoting_style = |
| 397 | static_cast<arrow::csv::QuotingStyle>(g_value_get_enum(value)); |
| 398 | break; |
| 399 | case PROP_CSV_WRITE_OPTIONS_QUOTING_HEADER: |
| 400 | priv->write_options.quoting_header = |
| 401 | static_cast<arrow::csv::QuotingStyle>(g_value_get_enum(value)); |
| 402 | break; |
| 403 | default: |
| 404 | G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec); |
| 405 | break; |
| 406 | } |
| 407 | } |
| 408 | |
| 409 | static void |
| 410 | garrow_csv_write_options_get_property(GObject *object, |
nothing calls this directly
no outgoing calls
no test coverage detected