FortranGIS  Version2.5
integer(kind=c_int) function readosm_parse ( type(c_ptr), value  osm_handle,
type(c_ptr), value  user_data,
type(c_funptr), value  node_fnct,
type(c_funptr), value  way_fnct,
type(c_funptr), value  relation_fnct 
)

Parse the corresponding file calling the selected callbacks for every entity encountered.

This is the original C interface, where callback functions are interoperable C function pointers, c_null_funptr can be passed in order to disable the corresponding callback.

Returns
READOSM_OK will be returned on success, otherwise any appropriate error code on failure.
Parameters
osm_handlethe handle previously returned by readosm_open()
user_datauser_data pointer to some user-supplied data struct
node_fnctpointer to callback function intended to consume NODE objects (may be NULL if processing NODEs is not an interesting option)
way_fnctpointer to callback function intended to consume WAY objects (may be NULL if processing WAYs is not an interesting option)
relation_fnctpointer to callback function intended to consume RELATION objects (may be NULL if processing RELATIONs is not an interesting option)

Definition at line 523 of file readosm.F90.