Top | ![]() |
![]() |
![]() |
![]() |
GQuark | gebr_iexpr_error_quark () |
gboolean | gebr_iexpr_set_var () |
gboolean | gebr_iexpr_is_valid () |
void | gebr_iexpr_reset () |
GList * | gebr_iexpr_extract_vars () |
gboolean | gebr_iexpr_eval () |
The GebrIExpr interface defines methods for creating and validating expressions. There are two kinds of expressions in GeBR: GebrArithmeticExpr and GebrStringExpr.
gboolean gebr_iexpr_set_var (GebrIExpr *self
,const gchar *name
,GebrGeoXmlParameterType type
,const gchar *value
,GError **error
);
expr |
||
name |
the name of the variable |
|
type |
one of GebrGeoXmlParameterType |
|
value |
the value of the variable |
|
error |
return location for an GEBR_IEXPR_ERROR, or |
gboolean gebr_iexpr_is_valid (GebrIExpr *self
,const gchar *expr
,GError **error
);
expr |
||
expression |
the expression to check for validity |
|
error |
return location for an GEBR_IEXPR_ERROR, or |
gboolean gebr_iexpr_eval (GebrIExpr *self
,const gchar *expr
,gchar **value
,GError **error
);
expr |
||
expr |
expression to be evaluated. |
|
value |
returns the value of the expression. |
|
error |
return location for an GEBR_IEXPR_ERROR, or |
#define GEBR_IEXPR_ERROR (gebr_iexpr_error_quark())
Error domain for handling expressions. Errors in this domain will be from GebrIExprError enumeration.
Error codes returned by expression handling functions.
struct GebrIExprInterface { GTypeInterface parent; gboolean (*set_var) (GebrIExpr *self, const gchar *name, GebrGeoXmlParameterType type, const gchar *value, GError **error); gboolean (*is_valid) (GebrIExpr *self, const gchar *expr, GError **error); void (*reset) (GebrIExpr *self); GList * (*extract_vars) (GebrIExpr *self, const gchar *expr); gboolean (*eval) (GebrIExpr *self, const gchar *expr, gchar **value, GError **error); };