/* PSPPIRE --- A Graphical User Interface for PSPP Copyright (C) 2004 Free Software Foundation Written by John Darrington This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program 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 General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef __PSPP_OBJECT_H__ #define __PSPP_OBJECT_H__ #include #include G_BEGIN_DECLS /* --- type macros --- */ #define G_TYPE_PSPP_OBJECT (pspp_object_get_type ()) #define PSPP_OBJECT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), G_TYPE_PSPP_OBJECT, PSPP_Object)) #define PSPP_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), G_TYPE_PSPP_OBJECT, PSPP_ObjectClass)) #define G_IS_PSPP_OBJECT(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), G_TYPE_PSPP_OBJECT)) #define G_IS_PSPP_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), G_TYPE_PSPP_OBJECT)) #define PSPP_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), G_TYPE_PSPP_OBJECT, PSPP_ObjectClass)) /* --- typedefs & structures --- */ typedef struct _PSPP_Object PSPP_Object; typedef struct _PSPP_ObjectClass PSPP_ObjectClass; struct _PSPP_Object { GObject parent; GPtrArray *array; }; struct _PSPP_ObjectClass { GObjectClass parent_class; }; /* -- PSPP_Object --- */ GType pspp_object_get_type(void); PSPP_Object* pspp_object_new(void); G_END_DECLS #endif /* __PSPP_OBJECT_H__ */