julienne_file_m Module

A representation of a file as an object


Uses

  • module~~julienne_file_m~~UsesGraph module~julienne_file_m julienne_file_m module~julienne_string_m julienne_string_m module~julienne_file_m->module~julienne_string_m assert_m assert_m module~julienne_string_m->assert_m

Used by

  • module~~julienne_file_m~~UsedByGraph module~julienne_file_m julienne_file_m module~julienne_file_s julienne_file_s module~julienne_file_s->module~julienne_file_m module~julienne_m julienne_m module~julienne_m->module~julienne_file_m program~check_command_line_argument check_command_line_argument program~check_command_line_argument->module~julienne_m program~get_flag_value get_flag_value program~get_flag_value->module~julienne_m program~handle_missing_flag handle_missing_flag program~handle_missing_flag->module~julienne_m

Interfaces

public interface file_t

  • private impure elemental module function from_file_with_character_name(file_name) result(file_object)

    Arguments

    Type IntentOptional Attributes Name
    character(len=*), intent(in) :: file_name

    Return Value type(file_t)

  • private impure elemental module function from_file_with_string_name(file_name) result(file_object)

    Arguments

    Type IntentOptional Attributes Name
    type(string_t), intent(in) :: file_name

    Return Value type(file_t)

  • private pure module function from_string_array(lines) result(file_object)

    Arguments

    Type IntentOptional Attributes Name
    type(string_t), intent(in) :: lines(:)

    Return Value type(file_t)

interface

  • private pure module function lines(self) result(my_lines)

    Arguments

    Type IntentOptional Attributes Name
    class(file_t), intent(in) :: self

    Return Value type(string_t), allocatable, (:)

interface

  • private impure elemental module subroutine write_lines(self, file_name)

    Arguments

    Type IntentOptional Attributes Name
    class(file_t), intent(in) :: self
    type(string_t), intent(in), optional :: file_name

Derived Types

type, public ::  file_t

Components

Type Visibility Attributes Name Initial
type(string_t), private, allocatable :: lines_(:)

Constructor

private impure, elemental, module function from_file_with_character_name (file_name)
private impure, elemental, module function from_file_with_string_name (file_name)
private pure, module function from_string_array (lines)

Type-Bound Procedures

procedure, public :: lines
procedure, public :: write_lines