grim/gplate

some more testing migration stuff.

2012-09-04, Gary Kramlich
7f8e0e4f250f
some more testing migration stuff.
Variables aren't done yet
/*
* GPlate - GObject based templating library
* Copyright (C) 2007-2012 Gary Kramlich <grim@reaperworld.com>
*
* 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 3 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, see <http://www.gnu.org/licenses/>.
*/
#ifndef GPLATE_VARIABLE_H
#define GPLATE_VARIABLE_H
#include <glib.h>
#include <glib-object.h>
#define GPLATE_TYPE_VARIABLE (gplate_variable_get_gtype())
#define GPLATE_VARIABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GPLATE_TYPE_VARIABLE, GPlateVariable))
#define GPLATE_VARIABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GPLATE_TYPE_VARIABLE, GPlateVariableClass))
#define GPLATE_IS_VARIABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GPLATE_TYPE_VARIABLE))
#define GPLATE_IS_VARIABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GPLATE_TYPE_VARIABLE))
#define GPLATE_VARIABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GPLATE_TYPE_VARIABLE, GPlateVariableClass))
typedef struct _GPlateVariable GPlateVariable;
typedef struct _GPlateVariableClass GPlateVariableClass;
struct _GPlateVariable {
GObject gparent;
void (*_gplate_reserved1)(void);
void (*_gplate_reserved2)(void);
void (*_gplate_reserved3)(void);
void (*_gplate_reserved4)(void);
};
struct _GPlateVariableClass {
GObjectClass parent;
const gchar *(*get_name)(const GPlateVariable *variable);
const gchar *(*get_value)(const GPlateVariable *variable);
void (*set_value)(GPlateVariable *variable, const gchar *value);
void (*_gplate_reserved1)(void);
void (*_gplate_reserved2)(void);
void (*_gplate_reserved3)(void);
void (*_gplate_reserved4)(void);
};
G_BEGIN_DECLS
GType gplate_variable_get_gtype(void);
GPlateVariable *gplate_variable_new_from_string(const gchar *name, const gchar *value);
GPlateVariable *gplate_variable_new_from_boolean(const gchar *name, gboolean value);
GPlateVariable *gplate_variable_new_from_integer(const gchar *name, gint value);
GPlateVariable *gplate_variable_new_from_float(const gchar *name, gfloat value);
GPlateVariable *gplate_variable_new_from_double(const gchar *name, gdouble value);
const gchar *gplate_variable_get_name(const GPlateVariable *variable);
const gchar *gplate_variable_get_value(const GPlateVariable *variable);
void gplate_variable_set_value(GPlateVariable *variable, const gchar *value);
G_END_DECLS
#endif /* GPLATE_VARIABLE_H */