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.Type | Intent | Optional | 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. |