config_mod Module

module~~config_mod~~UsesGraph module~config_mod config_mod module~kinds_mod kinds_mod module~kinds_mod->module~config_mod module~text_mod text_mod module~kinds_mod->module~text_mod module~time_mod time_mod module~kinds_mod->module~time_mod module~text_mod->module~config_mod module~time_mod->module~text_mod iso_fortran_env iso_fortran_env iso_fortran_env->module~text_mod iso_c_binding iso_c_binding iso_c_binding->module~time_mod
Help

Module for reading variables from config files

Used By

module~~config_mod~~UsedByGraph module~config_mod config_mod program~testconfig_prg testConfig_prg module~config_mod->program~testconfig_prg
Help


Interfaces

public interface config_t

Constructor for config_t

  • private function newConfig(fn) result(self)

    Constructor for config_t

    Arguments

    Type IntentOptional AttributesName
    character(len=*), intent(in) :: fn

    Name of file to read

    Return Value type(config_t)

    Returned config_t object


Derived Types

type, public :: config_t

Type to store a set of pairs and access their data

Components

TypeVisibility AttributesNameInitial
character(len=:), public, allocatable:: fn

Filename data was read from

type(pair_t), public, dimension(:), allocatable:: pairs

Pairs of data

Constructor

Constructor for config_t

private function newConfig(fn)

Constructor for config_t

Type-Bound Procedures

procedure, public :: isFound
procedure, public :: getType
procedure, public :: getLogical
procedure, public :: getInteger
procedure, public :: getReal
procedure, public :: getComplex
procedure, public :: getVector
procedure, public :: getMatrix
procedure, public :: getString
procedure, public :: writeContents