GebrArithExpr

GebrArithExpr

Synopsis

struct              GebrArithExpr;
struct              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);
                    GebrArithExprPriv;

Object Hierarchy

  GObject
   +----GebrArithExpr

Implemented Interfaces

GebrArithExpr implements GebrIExpr.

Description

Details

struct GebrArithExpr

struct GebrArithExpr;

struct GebrArithExprClass

struct GebrArithExprClass {
	GObjectClass parent;
};

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);

GebrArithExprPriv

typedef struct _GebrArithExprPriv GebrArithExprPriv;