dm_lua_geocom_register Function

public function dm_lua_geocom_register(lua, procedures, errors) result(rc)

Uses

  • proc~~dm_lua_geocom_register~~UsesGraph proc~dm_lua_geocom_register dm_lua_geocom_register module~dm_util dm_util proc~dm_lua_geocom_register->module~dm_util module~dm_error dm_error module~dm_util->module~dm_error module~dm_kind dm_kind module~dm_util->module~dm_kind module~dm_error->module~dm_kind module~dm_ascii dm_ascii module~dm_error->module~dm_ascii iso_fortran_env iso_fortran_env module~dm_kind->iso_fortran_env

Registers all GeoCOM API procedures and type parameters in given Lua environment lua, unless procedures is .false.. If errors is passed and .true., all named GeoCOM return code parameters are registered as well.

The function returns E_INVALID if the Lua interpreter is not initialised, or E_LUA if the registration failed.

The following Lua procedures are registered:

  • geocom_abort_download()
  • geocom_abort_list()
  • geocom_beep_alarm()
  • geocom_beep_normal()
  • geocom_beep_off()
  • geocom_beep_on()
  • geocom_change_face()
  • geocom_delete()
  • geocom_do_measure()
  • geocom_download()
  • geocom_fine_adjust()
  • geocom_get_angle()
  • geocom_get_angle_complete()
  • geocom_get_angle_correction()
  • geocom_get_atmospheric_correction()
  • geocom_get_atmospheric_ppm()
  • geocom_get_atr_error()
  • geocom_get_atr_setting()
  • geocom_get_binary_mode()
  • geocom_get_config()
  • geocom_get_coordinate()
  • geocom_get_date_time()
  • geocom_get_date_time_centi()
  • geocom_get_device_config()
  • geocom_get_double_precision()
  • geocom_get_edm_mode()
  • geocom_get_egl_intensity()
  • geocom_get_face()
  • geocom_get_fine_adjust_mode()
  • geocom_get_full_measurement()
  • geocom_get_geocom_version()
  • geocom_get_geometric_ppm()
  • geocom_get_height()
  • geocom_get_image_config()
  • geocom_get_inclination_correction()
  • geocom_get_inclination_error()
  • geocom_get_instrument_name()
  • geocom_get_instrument_number()
  • geocom_get_internal_temperature()
  • geocom_get_lock_status()
  • geocom_get_measurement_program()
  • geocom_get_power()
  • geocom_get_prism_constant()
  • geocom_get_prism_definition()
  • geocom_get_prism_type()
  • geocom_get_prism_type_v2()
  • geocom_get_quick_distance()
  • geocom_get_reduced_atr_fov()
  • geocom_get_reflectorless_class()
  • geocom_get_refraction_mode()
  • geocom_get_search_area()
  • geocom_get_signal()
  • geocom_get_simple_coordinates()
  • geocom_get_simple_measurement()
  • geocom_get_slope_distance_correction()
  • geocom_get_software_version()
  • geocom_get_station()
  • geocom_get_target_type()
  • geocom_get_timeout()
  • geocom_get_tolerance()
  • geocom_get_user_atr_mode()
  • geocom_get_user_lock_mode()
  • geocom_get_user_prism_definition()
  • geocom_get_user_spiral()
  • geocom_list()
  • geocom_lock_in()
  • geocom_measure_distance_angle()
  • geocom_null()
  • geocom_ps_enable_range()
  • geocom_ps_search_next()
  • geocom_ps_search_window()
  • geocom_ps_set_range()
  • geocom_search()
  • geocom_search_target()
  • geocom_set_angle_correction()
  • geocom_set_atmospheric_correction()
  • geocom_set_atmospheric_ppm()
  • geocom_set_atr_mode()
  • geocom_set_binary_mode()
  • geocom_set_config()
  • geocom_set_date_time()
  • geocom_set_distance()
  • geocom_set_double_precision()
  • geocom_set_edm_mode()
  • geocom_set_egl_intensity()
  • geocom_set_fine_adjust_mode()
  • geocom_set_geometric_ppm()
  • geocom_set_height()
  • geocom_set_image_config()
  • geocom_set_inclination_correction()
  • geocom_set_laser_pointer()
  • geocom_set_measurement_program()
  • geocom_set_orientation()
  • geocom_set_position()
  • geocom_set_positioning_timeout()
  • geocom_set_prism_constant()
  • geocom_set_prism_type()
  • geocom_set_prism_type_v2()
  • geocom_set_reduced_atr_fov()
  • geocom_set_refraction_mode()
  • geocom_set_search_area()
  • geocom_set_station()
  • geocom_set_target_type()
  • geocom_set_tolerance()
  • geocom_set_user_atr_mode()
  • geocom_set_user_lock_mode()
  • geocom_set_user_prism_definition()
  • geocom_set_user_spiral()
  • geocom_set_velocity()
  • geocom_setup_download()
  • geocom_setup_list()
  • geocom_start_controller()
  • geocom_stop_controller()
  • geocom_switch_off()
  • geocom_switch_on()
  • geocom_take_image()

Arguments

Type IntentOptional Attributes Name
type(lua_state_type), intent(inout) :: lua

Lua state type.

logical, intent(in), optional :: procedures

Export GeoCOM API procedures and type parameters.

logical, intent(in), optional :: errors

Export GeoCOM return codes (GRC_*).

Return Value integer


Calls

proc~~dm_lua_geocom_register~~CallsGraph proc~dm_lua_geocom_register dm_lua_geocom_register interface~dm_lua_set dm_lua_set proc~dm_lua_geocom_register->interface~dm_lua_set proc~dm_is_error dm_is_error proc~dm_lua_geocom_register->proc~dm_is_error proc~dm_lua_is_opened dm_lua_is_opened proc~dm_lua_geocom_register->proc~dm_lua_is_opened proc~dm_lua_register dm_lua_register proc~dm_lua_geocom_register->proc~dm_lua_register lua_register lua_register proc~dm_lua_register->lua_register

Called by

proc~~dm_lua_geocom_register~~CalledByGraph proc~dm_lua_geocom_register dm_lua_geocom_register proc~dm_config_open dm_config_open proc~dm_config_open->proc~dm_lua_geocom_register proc~luaopen_libdmpack luaopen_libdmpack proc~luaopen_libdmpack->proc~dm_lua_geocom_register