Opaque file configuration class.
Closes configuration file.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(config_class), | intent(inout) | :: | this |
Config object. |
Loads field value on to Lua stack. Returns E_CONFIG
on error.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(config_class), | intent(inout) | :: | this |
Config object. |
||
character(len=*), | intent(in) | :: | name |
Setting name. |
Returns configuration values as 4-byte integer array in values
.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(config_class), | intent(inout) | :: | this |
Config object. |
||
character(len=*), | intent(in) | :: | name |
Setting name. |
||
integer(kind=i4), | intent(out), | allocatable | :: | values(:) |
Setting values. |
|
integer, | intent(out), | optional | :: | error |
Error code. |
Returns configuration values as 8-byte integer array in values
.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(config_class), | intent(inout) | :: | this |
Config object. |
||
character(len=*), | intent(in) | :: | name |
Setting name. |
||
integer(kind=i8), | intent(out), | allocatable | :: | values(:) |
Setting values. |
|
integer, | intent(out), | optional | :: | error |
Error code. |
Returns configuration values as string array in values
.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(config_class), | intent(inout) | :: | this |
Config object. |
||
character(len=*), | intent(in) | :: | name |
Setting name. |
||
character(len=*), | intent(inout), | allocatable | :: | values(:) |
Setting values. |
|
integer, | intent(out), | optional | :: | error |
Error code. |
Returns configuration value as 4-byte integer in value
.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(config_class), | intent(inout) | :: | this |
Config object. |
||
character(len=*), | intent(in) | :: | name |
Setting name. |
||
integer(kind=i4), | intent(inout) | :: | value |
Setting value. |
||
integer, | intent(out), | optional | :: | error |
Error code. |
Returns configuration value as 8-byte integer in value
.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(config_class), | intent(inout) | :: | this |
Config object. |
||
character(len=*), | intent(in) | :: | name |
Setting name. |
||
integer(kind=i8), | intent(inout) | :: | value |
Setting value. |
||
integer, | intent(out), | optional | :: | error |
Error code. |
Returns configuration value as job list in value
.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(config_class), | intent(inout) | :: | this |
Config object. |
||
character(len=*), | intent(in) | :: | name |
Setting name. |
||
type(job_list_type), | intent(out) | :: | value |
Setting value. |
||
integer, | intent(out), | optional | :: | error |
Error code. |
|
logical, | intent(in), | optional | :: | field |
Read from table field. |
Returns configuration value as logical in value
(if 0 or 1).
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(config_class), | intent(inout) | :: | this |
Config object. |
||
character(len=*), | intent(in) | :: | name |
Setting name. |
||
logical, | intent(inout) | :: | value |
Setting value. |
||
integer, | intent(out), | optional | :: | error |
Error code. |
Returns configuration value as 4-byte real in value
.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(config_class), | intent(inout) | :: | this |
Config object. |
||
character(len=*), | intent(in) | :: | name |
Setting name. |
||
real(kind=r4), | intent(inout) | :: | value |
Setting value. |
||
integer, | intent(out), | optional | :: | error |
Error code. |
Returns configuration value as 8-byte real in value
.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(config_class), | intent(inout) | :: | this |
Config object. |
||
character(len=*), | intent(in) | :: | name |
Setting name. |
||
real(kind=r8), | intent(inout) | :: | value |
Setting value. |
||
integer, | intent(out), | optional | :: | error |
Error code. |
Returns configuration value as report in value
.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(config_class), | intent(inout) | :: | this |
Config object. |
||
character(len=*), | intent(in) | :: | name |
Setting name. |
||
type(report_type), | intent(out) | :: | value |
Setting value. |
||
integer, | intent(out), | optional | :: | error |
Error code. |
|
logical, | intent(in), | optional | :: | field |
Read from table field. |
Returns configuration value as character string in value
. The
string is unescaped by default (\\
is converted to \
).
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(config_class), | intent(inout) | :: | this |
Config object. |
||
character(len=*), | intent(in) | :: | name |
Setting name. |
||
character(len=*), | intent(inout) | :: | value |
Setting value. |
||
integer, | intent(out), | optional | :: | error |
Error code. |
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 | ||
---|---|---|---|---|---|---|
class(config_class), | intent(inout) | :: | this |
Config object. |
||
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. |
Removes last stack element.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(config_class), | intent(inout) | :: | this |
Config object. |
Returns size of configuration table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(config_class), | intent(inout) | :: | this |
Config object. |