/* propertyaccessortype.c generated by valac, the Vala compiler
 * generated from propertyaccessortype.vala, do not modify */

/* propertyaccessor.vala
 *
 * Copyright (C) 2011  Florian Brosch
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
 *
 * Author:
 * 	Florian Brosch <flo.brosch@gmail.com>
 */

#include <glib.h>
#include <glib-object.h>
#include "valadoc.h"
#include <stdlib.h>
#include <string.h>






gchar* valadoc_api_property_accessor_type_to_string (ValadocApiPropertyAccessorType self) {
	gchar* result = NULL;
	if ((self & VALADOC_API_PROPERTY_ACCESSOR_TYPE_CONSTRUCT) != 0) {
		gchar* _tmp1_;
		if ((self & VALADOC_API_PROPERTY_ACCESSOR_TYPE_SET) != 0) {
			gchar* _tmp0_;
			_tmp0_ = g_strdup ("construct set");
			result = _tmp0_;
			return result;
		}
		_tmp1_ = g_strdup ("construct");
		result = _tmp1_;
		return result;
	} else {
		if ((self & VALADOC_API_PROPERTY_ACCESSOR_TYPE_SET) != 0) {
			gchar* _tmp2_;
			_tmp2_ = g_strdup ("set");
			result = _tmp2_;
			return result;
		} else {
			if ((self & VALADOC_API_PROPERTY_ACCESSOR_TYPE_GET) != 0) {
				gchar* _tmp3_;
				_tmp3_ = g_strdup ("get");
				result = _tmp3_;
				return result;
			}
		}
	}
	g_assert_not_reached ();
}


GType valadoc_api_property_accessor_type_get_type (void) {
	static volatile gsize valadoc_api_property_accessor_type_type_id__volatile = 0;
	if (g_once_init_enter (&valadoc_api_property_accessor_type_type_id__volatile)) {
		static const GEnumValue values[] = {{VALADOC_API_PROPERTY_ACCESSOR_TYPE_CONSTRUCT, "VALADOC_API_PROPERTY_ACCESSOR_TYPE_CONSTRUCT", "construct"}, {VALADOC_API_PROPERTY_ACCESSOR_TYPE_SET, "VALADOC_API_PROPERTY_ACCESSOR_TYPE_SET", "set"}, {VALADOC_API_PROPERTY_ACCESSOR_TYPE_GET, "VALADOC_API_PROPERTY_ACCESSOR_TYPE_GET", "get"}, {0, NULL, NULL}};
		GType valadoc_api_property_accessor_type_type_id;
		valadoc_api_property_accessor_type_type_id = g_enum_register_static ("ValadocApiPropertyAccessorType", values);
		g_once_init_leave (&valadoc_api_property_accessor_type_type_id__volatile, valadoc_api_property_accessor_type_type_id);
	}
	return valadoc_api_property_accessor_type_type_id__volatile;
}



