GebrArithExpr

GebrArithExpr

Synopsis

                    GebrArithExpr;
                    GebrArithExprPriv;
                    GebrArithExprClass;
GebrArithExpr *     gebr_arith_expr_new                 (void);
gboolean            gebr_arith_expr_eval                (GebrArithExpr *self,
                                                         const gchar *expr,
                                                         gdouble *result,
                                                         GError **err);
gboolean            gebr_arith_expr_eval_internal       (GebrArithExpr *self,
                                                         const gchar *expr,
                                                         gchar **result,
                                                         GError **err);

Object Hierarchy

  GObject
   +----GebrArithExpr

Implemented Interfaces

GebrArithExpr implements GebrIExpr.

Description

Details

GebrArithExpr

typedef struct _GebrArithExpr GebrArithExpr;

GebrArithExprPriv

typedef struct _GebrArithExprPriv GebrArithExprPriv;

GebrArithExprClass

typedef struct {
	GObjectClass parent;
} GebrArithExprClass;

gebr_arith_expr_new ()

GebrArithExpr *     gebr_arith_expr_new                 (void);

Returns :

a newly allocated GebrArithExpr with reference count of 1.

gebr_arith_expr_eval ()

gboolean            gebr_arith_expr_eval                (GebrArithExpr *self,
                                                         const gchar *expr,
                                                         gdouble *result,
                                                         GError **err);

expr :

a GebrArithExpr

expression :

a string expression

error :

return location for an error, or NULL

Returns :

TRUE if evaluation was successful, FALSE otherwise.

gebr_arith_expr_eval_internal ()

gboolean            gebr_arith_expr_eval_internal       (GebrArithExpr *self,
                                                         const gchar *expr,
                                                         gchar **result,
                                                         GError **err);