dm_config_open Function

public function dm_config_open(config, path, name, geocom) result(rc)

Uses

  • proc~~dm_config_open~~UsesGraph proc~dm_config_open dm_config_open module~dm_file dm_file proc~dm_config_open->module~dm_file module~dm_lua_api dm_lua_api proc~dm_config_open->module~dm_lua_api module~dm_lua_geocom dm_lua_geocom proc~dm_config_open->module~dm_lua_geocom module~dm_error dm_error module~dm_file->module~dm_error module~dm_kind dm_kind module~dm_file->module~dm_kind iso_c_binding iso_c_binding module~dm_lua_api->iso_c_binding module~dm_lua_api->module~dm_error module~dm_lua dm_lua module~dm_lua_api->module~dm_lua module~dm_util dm_util module~dm_lua_api->module~dm_util module~dm_lua_geocom->iso_c_binding module~dm_lua_geocom->module~dm_error module~dm_geocom_api dm_geocom_api module~dm_lua_geocom->module~dm_geocom_api module~dm_geocom_error dm_geocom_error module~dm_lua_geocom->module~dm_geocom_error module~dm_geocom_type dm_geocom_type module~dm_lua_geocom->module~dm_geocom_type module~dm_lua_geocom->module~dm_kind module~dm_lua_geocom->module~dm_lua module~dm_request dm_request module~dm_lua_geocom->module~dm_request module~dm_error->module~dm_kind module~dm_ascii dm_ascii module~dm_error->module~dm_ascii module~dm_geocom_api->module~dm_geocom_type module~dm_geocom_api->module~dm_kind module~dm_geocom_api->module~dm_request module~dm_geocom_api->module~dm_util module~dm_response dm_response module~dm_geocom_api->module~dm_response module~dm_geocom_type->module~dm_error iso_fortran_env iso_fortran_env module~dm_kind->iso_fortran_env module~dm_lua->module~dm_file module~dm_lua->iso_c_binding module~dm_lua->module~dm_error module~dm_lua->module~dm_kind module~dm_lua->module~dm_util lua lua module~dm_lua->lua module~dm_string dm_string module~dm_lua->module~dm_string module~dm_request->module~dm_error module~dm_request->module~dm_kind module~dm_request->module~dm_util module~dm_id dm_id module~dm_request->module~dm_id module~dm_request->module~dm_response module~dm_request->module~dm_string module~dm_time dm_time module~dm_request->module~dm_time module~dm_util->module~dm_error module~dm_util->module~dm_kind module~dm_response->module~dm_error module~dm_response->module~dm_kind module~dm_response->module~dm_util module~dm_response->module~dm_id module~dm_string->module~dm_error module~dm_string->module~dm_kind module~dm_time->module~dm_error module~dm_time->module~dm_kind module~dm_time->module~dm_util

Opens configuration file and optionally loads the table of the given name if the argument has been passed.

The function returns the following error codes:

  • E_INVALID if the file path is empty.
  • E_LUA if a Lua error occured.
  • E_NOT_FOUND if the configuration file is not found.
  • E_TYPE if the configuration name is not a Lua table.

Arguments

Type IntentOptional Attributes Name
type(config_type), intent(inout) :: config

Config type.

character(len=*), intent(in) :: path

Path to config file.

character(len=*), intent(in), optional :: name

Name of table. Passed name implies table loading.

logical, intent(in), optional :: geocom

Register GeoCOM API for Lua.

Return Value integer


Calls

proc~~dm_config_open~~CallsGraph proc~dm_config_open dm_config_open proc~dm_error_out dm_error_out proc~dm_config_open->proc~dm_error_out proc~dm_file_exists dm_file_exists proc~dm_config_open->proc~dm_file_exists proc~dm_is_error dm_is_error proc~dm_config_open->proc~dm_is_error proc~dm_is_ok dm_is_ok proc~dm_config_open->proc~dm_is_ok proc~dm_lua_api_register dm_lua_api_register proc~dm_config_open->proc~dm_lua_api_register proc~dm_lua_error_string dm_lua_error_string proc~dm_config_open->proc~dm_lua_error_string proc~dm_lua_geocom_register dm_lua_geocom_register proc~dm_config_open->proc~dm_lua_geocom_register proc~dm_lua_init dm_lua_init proc~dm_config_open->proc~dm_lua_init proc~dm_lua_open dm_lua_open proc~dm_config_open->proc~dm_lua_open proc~dm_lua_table dm_lua_table proc~dm_config_open->proc~dm_lua_table proc~dm_string_is_present dm_string_is_present proc~dm_config_open->proc~dm_string_is_present proc~dm_ascii_escape dm_ascii_escape proc~dm_error_out->proc~dm_ascii_escape proc~dm_error_message dm_error_message proc~dm_error_out->proc~dm_error_message proc~dm_stop dm_stop proc~dm_error_out->proc~dm_stop proc~dm_lua_api_register->proc~dm_is_error interface~dm_lua_set dm_lua_set proc~dm_lua_api_register->interface~dm_lua_set proc~dm_lua_is_opened dm_lua_is_opened proc~dm_lua_api_register->proc~dm_lua_is_opened proc~dm_lua_register dm_lua_register proc~dm_lua_api_register->proc~dm_lua_register lua_isstring lua_isstring proc~dm_lua_error_string->lua_isstring lua_tostring lua_tostring proc~dm_lua_error_string->lua_tostring proc~dm_lua_geocom_register->proc~dm_is_error proc~dm_lua_geocom_register->interface~dm_lua_set proc~dm_lua_geocom_register->proc~dm_lua_is_opened proc~dm_lua_geocom_register->proc~dm_lua_register lual_newstate lual_newstate proc~dm_lua_init->lual_newstate lual_openlibs lual_openlibs proc~dm_lua_init->lual_openlibs proc~dm_lua_open->proc~dm_file_exists lual_dofile lual_dofile proc~dm_lua_open->lual_dofile lual_loadfile lual_loadfile proc~dm_lua_open->lual_loadfile proc~dm_lua_error dm_lua_error proc~dm_lua_open->proc~dm_lua_error lua_getglobal lua_getglobal proc~dm_lua_table->lua_getglobal lua_istable lua_istable proc~dm_lua_table->lua_istable lua_pop lua_pop proc~dm_lua_table->lua_pop proc~dm_lua_table_size dm_lua_table_size proc~dm_lua_table->proc~dm_lua_table_size lua_register lua_register proc~dm_lua_register->lua_register lua_rawlen lua_rawlen proc~dm_lua_table_size->lua_rawlen c_exit c_exit proc~dm_stop->c_exit