void property_item_string_set_data_throw (PropertySet* propertySet, const gchar* name, const gchar* data, GError** error) { PropertySet* _tmp0_; const gchar* _tmp1_; PropertyItem* _tmp2_ = NULL; PropertyItem* propertyItem; PropertyItem* _tmp3_; PropertySet* _tmp8_; const gchar* _tmp9_; gchar* _tmp10_; gchar* _tmp11_; gchar* _tmp12_; gchar* _tmp13_; const gchar* _tmp14_; gchar* _tmp15_; gchar* _tmp16_; gchar* _tmp17_; gchar* _tmp18_; GError* _tmp19_; GError* _tmp20_; GError * _inner_error_ = NULL; g_return_if_fail (propertySet != NULL); g_return_if_fail (name != NULL); g_return_if_fail (data != NULL); _tmp0_ = propertySet; _tmp1_ = name; _tmp2_ = property_set_get_item (_tmp0_, _tmp1_); propertyItem = _tmp2_; _tmp3_ = propertyItem; if (_tmp3_ != NULL) { PropertyItem* _tmp4_; _tmp4_ = propertyItem; if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, TYPE_PROPERTY_ITEM_STRING)) { PropertyItem* _tmp5_; const gchar* _tmp6_; gchar* _tmp7_; _tmp5_ = propertyItem; _tmp6_ = data; _tmp7_ = g_strdup (_tmp6_); _g_free0 ((G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, TYPE_PROPERTY_ITEM_STRING) ? ((PropertyItemString*) _tmp5_) : NULL)->data); (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, TYPE_PROPERTY_ITEM_STRING) ? ((PropertyItemString*) _tmp5_) : NULL)->data = _tmp7_; _property_item_unref0 (propertyItem); return; } } _tmp8_ = propertySet; _tmp9_ = ((PropertyItem*) _tmp8_)->name; _tmp10_ = g_strconcat ("\"", _tmp9_, NULL); _tmp11_ = _tmp10_; _tmp12_ = g_strconcat (_tmp11_, "\" does not contain a string named \"", NULL); _tmp13_ = _tmp12_; _tmp14_ = name; _tmp15_ = g_strconcat (_tmp13_, _tmp14_, NULL); _tmp16_ = _tmp15_; _tmp17_ = g_strconcat (_tmp16_, "\"", NULL); _tmp18_ = _tmp17_; _tmp19_ = g_error_new_literal (PROPERTY_ITEM_ERROR, PROPERTY_ITEM_ERROR_ITEM_NOT_FOUND, _tmp18_); _tmp20_ = _tmp19_; _g_free0 (_tmp18_); _g_free0 (_tmp16_); _g_free0 (_tmp13_); _g_free0 (_tmp11_); _inner_error_ = _tmp20_; if (_inner_error_->domain == PROPERTY_ITEM_ERROR) { g_propagate_error (error, _inner_error_); _property_item_unref0 (propertyItem); return; } else { _property_item_unref0 (propertyItem); g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); g_clear_error (&_inner_error_); return; } _property_item_unref0 (propertyItem); }
gdouble property_item_double_get_data_throw (PropertySet* propertySet, const gchar* name, GError** error) { gdouble result = 0.0; PropertyItem* propertyItem = NULL; PropertySet* _tmp0_ = NULL; const gchar* _tmp1_ = NULL; PropertyItem* _tmp2_ = NULL; PropertyItem* _tmp3_ = NULL; PropertySet* _tmp7_ = NULL; const gchar* _tmp8_ = NULL; gchar* _tmp9_ = NULL; gchar* _tmp10_ = NULL; gchar* _tmp11_ = NULL; gchar* _tmp12_ = NULL; const gchar* _tmp13_ = NULL; gchar* _tmp14_ = NULL; gchar* _tmp15_ = NULL; gchar* _tmp16_ = NULL; gchar* _tmp17_ = NULL; GError* _tmp18_ = NULL; GError* _tmp19_ = NULL; GError * _inner_error_ = NULL; g_return_val_if_fail (propertySet != NULL, 0.0); g_return_val_if_fail (name != NULL, 0.0); _tmp0_ = propertySet; _tmp1_ = name; _tmp2_ = property_set_get_item (_tmp0_, _tmp1_); propertyItem = _tmp2_; _tmp3_ = propertyItem; if (_tmp3_ != NULL) { PropertyItem* _tmp4_ = NULL; _tmp4_ = propertyItem; if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, TYPE_PROPERTY_ITEM_DOUBLE)) { PropertyItem* _tmp5_ = NULL; gdouble _tmp6_ = 0.0; _tmp5_ = propertyItem; _tmp6_ = (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, TYPE_PROPERTY_ITEM_DOUBLE) ? ((PropertyItemDouble*) _tmp5_) : NULL)->data; result = _tmp6_; _property_item_unref0 (propertyItem); return result; } } _tmp7_ = propertySet; _tmp8_ = ((PropertyItem*) _tmp7_)->name; _tmp9_ = g_strconcat ("\"", _tmp8_, NULL); _tmp10_ = _tmp9_; _tmp11_ = g_strconcat (_tmp10_, "\" does not contain a double named \"", NULL); _tmp12_ = _tmp11_; _tmp13_ = name; _tmp14_ = g_strconcat (_tmp12_, _tmp13_, NULL); _tmp15_ = _tmp14_; _tmp16_ = g_strconcat (_tmp15_, "\"", NULL); _tmp17_ = _tmp16_; _tmp18_ = g_error_new_literal (PROPERTY_ITEM_ERROR, PROPERTY_ITEM_ERROR_ITEM_NOT_FOUND, _tmp17_); _tmp19_ = _tmp18_; _g_free0 (_tmp17_); _g_free0 (_tmp15_); _g_free0 (_tmp12_); _g_free0 (_tmp10_); _inner_error_ = _tmp19_; if (_inner_error_->domain == PROPERTY_ITEM_ERROR) { g_propagate_error (error, _inner_error_); _property_item_unref0 (propertyItem); return 0.0; } else { _property_item_unref0 (propertyItem); g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); g_clear_error (&_inner_error_); return 0.0; } _property_item_unref0 (propertyItem); }