load_url Subroutine

private impure elemental subroutine load_url(this)

Uses

    • json_module
  • proc~~load_url~~UsesGraph proc~load_url foropenai_Transcription::Transcription%load_url json_module json_module proc~load_url->json_module

Type Bound

Transcription

Arguments

Type IntentOptional Attributes Name
class(Transcription), intent(inout) :: this

Calls

proc~~load_url~~CallsGraph proc~load_url foropenai_Transcription::Transcription%load_url destroy destroy proc~load_url->destroy get get proc~load_url->get initialize initialize proc~load_url->initialize load_file load_file proc~load_url->load_file

Called by

proc~~load_url~~CalledByGraph proc~load_url foropenai_Transcription::Transcription%load_url proc~load_transcription_data foropenai_Transcription::Transcription%load_Transcription_data proc~load_transcription_data->proc~load_url proc~set_transcription_data foropenai_Transcription::Transcription%set_Transcription_data proc~set_transcription_data->proc~load_transcription_data program~test_transcription test_Transcription program~test_transcription->proc~set_transcription_data

Source Code

   elemental impure subroutine load_url(this)
      use json_module, only: json_file
      class(Transcription), intent(inout) :: this
      type(json_file)                     :: json
      character(len=:), allocatable       :: tmp
      logical                             :: found
      call json%initialize()
      call json%load_file(trim(this%file_name))
      call json%get("Transcription.url", tmp, found=found)
      if (found) this%url = trim(tmp)
      call json%destroy()
   end subroutine load_url