Top | ![]() |
![]() |
![]() |
![]() |
GebrValidator * | gebr_validator_new () |
gboolean | gebr_validator_insert () |
gboolean | gebr_validator_remove () |
gboolean | gebr_validator_rename () |
gboolean | gebr_validator_change_value () |
gboolean | gebr_validator_move () |
gboolean | gebr_validator_validate_param () |
gboolean | gebr_validator_validate_expr_on_scope () |
gboolean | gebr_validator_validate_expr () |
void | gebr_validator_get_documents () |
void | gebr_validator_update () |
void | gebr_validator_force_update () |
void | gebr_validator_free () |
gboolean | gebr_validator_evaluate_interval () |
gboolean | gebr_validator_evaluate () |
gboolean | gebr_validator_evaluate_param () |
gboolean | gebr_validator_is_var_in_scope () |
void | gebr_validator_set_document () |
void | gebr_validator_push_document () |
GebrGeoXmlDocument ** | gebr_validator_pop_document () |
gboolean | gebr_validator_use_iter () |
gboolean | gebr_validator_validate_control_parameter () |
GebrValidator * gebr_validator_new (GebrGeoXmlDocument **flow
,GebrGeoXmlDocument **line
,GebrGeoXmlDocument **proj
);
gboolean gebr_validator_insert (GebrValidator *self
,GebrGeoXmlParameter *param
,GList **affected
,GError **error
);
gboolean gebr_validator_remove (GebrValidator *self
,GebrGeoXmlParameter *param
,GList **affected
,GError **error
);
gboolean gebr_validator_rename (GebrValidator *self
,GebrGeoXmlParameter *param
,const gchar *new_name
,GList **affected
,GError **error
);
If the param
has not been inserted in validator, returns FALSE
gboolean gebr_validator_change_value (GebrValidator *self
,GebrGeoXmlParameter *param
,const gchar *new_value
,GList **affected
,GError **error
);
Find variable on the correct scope, and changes the param
value to new_value
.
gboolean gebr_validator_move (GebrValidator *self
,GebrGeoXmlParameter *source
,GebrGeoXmlParameter *pivot
,GebrGeoXmlDocumentType pivot_scope
,GebrGeoXmlParameter **copy
,GList **affected
,GError **error
);
gboolean gebr_validator_validate_param (GebrValidator *validator
,GebrGeoXmlParameter *parameter
,gchar **validated
,GError **error
);
Validates parameter
's values and returns the validated
string. If parameter
is not valid, then error
is filled with the appropriate message and NULL
is
returned.
gboolean gebr_validator_validate_expr_on_scope (GebrValidator *self
,const gchar *str
,GebrGeoXmlParameterType type
,GebrGeoXmlDocumentType scope
,GError **err
);
gboolean gebr_validator_validate_expr (GebrValidator *validator
,const gchar *expression
,GebrGeoXmlParameterType type
,GError **error
);
void gebr_validator_get_documents (GebrValidator *validator
,GebrGeoXmlDocument **flow
,GebrGeoXmlDocument **line
,GebrGeoXmlDocument **proj
);
void
gebr_validator_update (GebrValidator *validator
);
Updates of all variables of the changed documents.
void
gebr_validator_force_update (GebrValidator *validator
);
Forces update of all variables, ignoring document cache.
gboolean gebr_validator_evaluate_interval (GebrValidator *self
,const gchar *expr
,GebrGeoXmlParameterType type
,GebrGeoXmlDocumentType scope
,gboolean show_interval
,gchar **value
,GError **error
);
gboolean gebr_validator_evaluate (GebrValidator *self
,const gchar *expr
,GebrGeoXmlParameterType type
,GebrGeoXmlDocumentType scope
,gchar **value
,GError **error
);
gboolean gebr_validator_evaluate_param (GebrValidator *self
,GebrGeoXmlParameter *myparam
,gchar **value
,GError **error
);
Calculate the value of expr
and return it at value
.
validator |
The GebrValidator to be used |
|
myparam |
The parameter to evaluate |
|
value |
Returns the value of the expression. |
|
error |
Returns the error, if any. |
gboolean gebr_validator_is_var_in_scope (GebrValidator *self
,const gchar *name
,GebrGeoXmlDocumentType scope
);
void gebr_validator_set_document (GebrValidator *self
,GebrGeoXmlDocument **doc
,GebrGeoXmlDocumentType type
,gboolean force
);
gebr_validator_set_document
is deprecated and should not be used in newly-written code.
Use gebr_validator_push_document()
and
gebr_validator_pop_document()
instead.
Set on validator, a new doc
.
void gebr_validator_push_document (GebrValidator *self
,GebrGeoXmlDocument **doc
,GebrGeoXmlDocumentType type
);
Pushes doc
into this validator, saving a copy of the last document in a
queue. This effectivelly changes the whole validation, using doc
's
variables instead of the original one. To return to the last state, see
gebr_validator_pop_document()
.
Notice that there is a queue for each type of document.
GebrGeoXmlDocument ** gebr_validator_pop_document (GebrValidator *self
,GebrGeoXmlDocumentType type
);
Pops the current document and return the validator to the last saved state.
See gebr_validator_push_document()
.
gboolean gebr_validator_use_iter (GebrValidator *self
,const gchar *expr
,GebrGeoXmlParameterType type
,GebrGeoXmlDocumentType scope
);
gboolean gebr_validator_validate_control_parameter (GebrValidator *self
,const gchar *name
,const gchar *expression
,GError **error
);
Return FALSE
if parameter have error, FALSE
otherwise