Top |
ArvEvaluator * | arv_evaluator_new () |
void | arv_evaluator_set_expression () |
const char * | arv_evaluator_get_expression () |
const char * | arv_evaluator_get_constant () |
const char * | arv_evaluator_get_sub_expression () |
void | arv_evaluator_set_constant () |
void | arv_evaluator_set_sub_expression () |
double | arv_evaluator_evaluate_as_double () |
gint64 | arv_evaluator_evaluate_as_int64 () |
void | arv_evaluator_set_double_variable () |
void | arv_evaluator_set_int64_variable () |
ArvEvaluator *
arv_evaluator_new (const char *expression
);
Creates a new ArvEvaluator object. The syntax is described in the genicam standard specification.
void arv_evaluator_set_expression (ArvEvaluator *evaluator
,const char *expression
);
const char *
arv_evaluator_get_expression (ArvEvaluator *evaluator
);
const char * arv_evaluator_get_constant (ArvEvaluator *evaluator
,const char *name
);
Since: 0.6.0
const char * arv_evaluator_get_sub_expression (ArvEvaluator *evaluator
,const char *name
);
Since: 0.6.0
void arv_evaluator_set_constant (ArvEvaluator *evaluator
,const char *name
,const char *constant
);
Assign a string to a constant. If constant
== NULL
, the constant previously assigned to name
will be removed.
Since: 0.6.0
void arv_evaluator_set_sub_expression (ArvEvaluator *evaluator
,const char *name
,const char *expression
);
Assign a formula to a sub-expression. If expression
== NULL
, the sub-expression previously assigned to name
will be removed.
A sub-expression may not reference another sub-expression.
Since: 0.6.0
double arv_evaluator_evaluate_as_double (ArvEvaluator *evaluator
,GError **error
);
gint64 arv_evaluator_evaluate_as_int64 (ArvEvaluator *evaluator
,GError **error
);
void arv_evaluator_set_double_variable (ArvEvaluator *evaluator
,const char *name
,double v_double
);
void arv_evaluator_set_int64_variable (ArvEvaluator *evaluator
,const char *name
,gint64 v_int64
);