dm_config_get Interface

public interface dm_config_get

Generic interface to return configuration value by name.


Module Procedures

private subroutine config_get_array_int32(config, name, values, error)

Returns configuration values as 4-byte integer array in values.

Arguments

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

Config type.

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

Setting name.

integer(kind=i4), intent(out), allocatable :: values(:)

Setting values.

integer, intent(out), optional :: error

Error code.

private subroutine config_get_array_int64(config, name, values, error)

Returns configuration values as 8-byte integer array in values.

Arguments

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

Config type.

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

Setting name.

integer(kind=i8), intent(out), allocatable :: values(:)

Setting values.

integer, intent(out), optional :: error

Error code.

private subroutine config_get_array_string(config, name, values, error)

Returns configuration values as string array in values.

Arguments

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

Config type.

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

Setting name.

character(len=*), intent(inout), allocatable :: values(:)

Setting values.

integer, intent(out), optional :: error

Error code.

private subroutine config_get_int32(config, name, value, error)

Returns configuration value as 4-byte integer in value.

Arguments

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

Config type.

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

Setting name.

integer(kind=i4), intent(inout) :: value

Setting value.

integer, intent(out), optional :: error

Error code.

private subroutine config_get_int64(config, name, value, error)

Returns configuration value as 8-byte integer in value.

Arguments

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

Config type.

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

Setting name.

integer(kind=i8), intent(inout) :: value

Setting value.

integer, intent(out), optional :: error

Error code.

private subroutine config_get_job_list(config, name, value, error, field)

Returns configuration value as job list in value.

Arguments

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

Config type.

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.

private subroutine config_get_logical(config, name, value, error)

Returns configuration value as logical in value (if 0 or 1).

Arguments

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

Config type.

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

Setting name.

logical, intent(inout) :: value

Setting value.

integer, intent(out), optional :: error

Error code.

private subroutine config_get_real32(config, name, value, error)

Returns configuration value as 4-byte real in value.

Arguments

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

Config type.

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

Setting name.

real(kind=r4), intent(inout) :: value

Setting value.

integer, intent(out), optional :: error

Error code.

private subroutine config_get_real64(config, name, value, error)

Returns configuration value as 8-byte real in value.

Arguments

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

Config type.

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

Setting name.

real(kind=r8), intent(inout) :: value

Setting value.

integer, intent(out), optional :: error

Error code.

private subroutine config_get_report(config, name, value, error, field)

Returns configuration value as report in value.

Arguments

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

Config type.

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.

private subroutine config_get_string(config, name, value, error)

Returns configuration value as character string in value. The string is unescaped by default (\\ is converted to \).

Arguments

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

Config type.

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

Setting name.

character(len=*), intent(inout) :: value

Setting value.

integer, intent(out), optional :: error

Error code.