HConfigParams Derived Type

type, public :: HConfigParams


Inherits

type~~hconfigparams~~InheritsGraph type~hconfigparams HConfigParams ESMF_HConfig ESMF_HConfig type~hconfigparams->ESMF_HConfig hconfig type~logger Logger type~hconfigparams->type~logger logger

Components

Type Visibility Attributes Name Initial
character(len=:), public, allocatable :: label
logical, public :: check_value_set = .FALSE.
logical, public :: value_set = .FALSE.
type(ESMF_HConfig), public :: hconfig
class(Logger), public, pointer :: logger => null()

Constructor

public interface HConfigParams

  • private function construct_hconfig_params(hconfig, label, check_value_set, logger) result(params)

    Arguments

    Type IntentOptional Attributes Name
    type(ESMF_HConfig), intent(in) :: hconfig
    character(len=*), intent(in) :: label
    logical, intent(in), optional :: check_value_set
    class(Logger), intent(in), optional, pointer :: logger

    Return Value type(HConfigParams)


Type-Bound Procedures

procedure, public :: has_logger

  • private function has_logger(this)

    Arguments

    Type IntentOptional Attributes Name
    class(HConfigParams), intent(in) :: this

    Return Value logical

procedure, public :: log_message

  • private subroutine log_message(this, typestring, valuestring, rc)

    Arguments

    Type IntentOptional Attributes Name
    class(HConfigParams), intent(in) :: this
    character(len=*), intent(in) :: typestring
    character(len=*), intent(in) :: valuestring
    integer, intent(out), optional :: rc

Source Code

   type :: HConfigParams
      type(ESMF_HConfig) :: hconfig
      character(len=:), allocatable :: label
      logical :: check_value_set = .FALSE.
      logical :: value_set = .FALSE.
      class(Logger_t), pointer :: logger => null()
   contains
      procedure :: log_message
      procedure :: has_logger
   end type HConfigParams