Soil Water Balance (SWB2)
Loading...
Searching...
No Matches
file_operations Module Reference

Data Types

type  ascii_file_t

Functions/Subroutines

integer(c_int) function return_fortran_unit_number_fn (this)
integer(c_int) function return_num_lines_fn (this)
integer(c_int) function return_num_records_fn (this)
integer(c_int) function return_current_linenum_fn (this)
logical(c_bool) function have_we_reached_the_eof_fn (this)
logical(c_bool) function is_current_line_a_comment_fn (this)
subroutine open_file_read_access_sub (this, sfilename, scommentchars, sdelimiters, lhasheader)
subroutine open_file_write_access_sub (this, sfilename, lquiet)
subroutine close_file_sub (this)
logical(c_bool) function does_file_exist_fn (this, sfilename)
logical(c_bool) function is_file_open_fn (this)
subroutine count_number_of_lines_sub (this)
type(fstring_list_t) function read_header_fn (this)
subroutine write_line_of_data_sub (this, stext)
character(len=:) function, allocatable read_line_of_data_fn (this)
character(len=:) function, allocatable, public fully_qualified_filename (filename, pathname)

Variables

integer(c_int), parameter max_str_len = 65536

Function/Subroutine Documentation

◆ close_file_sub()

subroutine file_operations::close_file_sub ( class (ascii_file_t) this)
private

Definition at line 255 of file file_operations.F90.

◆ count_number_of_lines_sub()

subroutine file_operations::count_number_of_lines_sub ( class (ascii_file_t), intent(inout) this)
private

Definition at line 292 of file file_operations.F90.

◆ does_file_exist_fn()

logical(c_bool) function file_operations::does_file_exist_fn ( class (ascii_file_t) this,
character (len=*), intent(in) sfilename )
private

Definition at line 269 of file file_operations.F90.

Here is the call graph for this function:

◆ fully_qualified_filename()

character(len=:) function, allocatable, public file_operations::fully_qualified_filename ( character(len=*), intent(in) filename,
character(len=*), intent(in), optional pathname )

Definition at line 421 of file file_operations.F90.

Here is the call graph for this function:

◆ have_we_reached_the_eof_fn()

logical (c_bool) function file_operations::have_we_reached_the_eof_fn ( class (ascii_file_t) this)
private

Definition at line 131 of file file_operations.F90.

◆ is_current_line_a_comment_fn()

logical (c_bool) function file_operations::is_current_line_a_comment_fn ( class (ascii_file_t) this)
private

Definition at line 142 of file file_operations.F90.

◆ is_file_open_fn()

logical(c_bool) function file_operations::is_file_open_fn ( class (ascii_file_t) this)
private

Definition at line 281 of file file_operations.F90.

◆ open_file_read_access_sub()

subroutine file_operations::open_file_read_access_sub ( class (ascii_file_t), intent(inout) this,
character (len=*), intent(in) sfilename,
character (len=*), intent(in) scommentchars,
character (len=*), intent(in) sdelimiters,
logical (c_bool), intent(in), optional lhasheader )
private

Definition at line 166 of file file_operations.F90.

Here is the call graph for this function:

◆ open_file_write_access_sub()

subroutine file_operations::open_file_write_access_sub ( class (ascii_file_t), intent(inout) this,
character (len=*), intent(in) sfilename,
logical (c_bool), intent(in), optional lquiet )
private

Definition at line 216 of file file_operations.F90.

Here is the call graph for this function:

◆ read_header_fn()

type (fstring_list_t) function file_operations::read_header_fn ( class (ascii_file_t), intent(inout) this)
private

Definition at line 333 of file file_operations.F90.

◆ read_line_of_data_fn()

character (len=:) function, allocatable file_operations::read_line_of_data_fn ( class (ascii_file_t), intent(inout) this)
private

Definition at line 385 of file file_operations.F90.

◆ return_current_linenum_fn()

integer (c_int) function file_operations::return_current_linenum_fn ( class (ascii_file_t) this)
private

Definition at line 120 of file file_operations.F90.

◆ return_fortran_unit_number_fn()

integer (c_int) function file_operations::return_fortran_unit_number_fn ( class (ascii_file_t) this)

Definition at line 87 of file file_operations.F90.

◆ return_num_lines_fn()

integer (c_int) function file_operations::return_num_lines_fn ( class (ascii_file_t) this)
private

Definition at line 98 of file file_operations.F90.

◆ return_num_records_fn()

integer (c_int) function file_operations::return_num_records_fn ( class (ascii_file_t) this)
private

Definition at line 109 of file file_operations.F90.

◆ write_line_of_data_sub()

subroutine file_operations::write_line_of_data_sub ( class (ascii_file_t), intent(inout) this,
character (len=*), intent(in) stext )
private

Definition at line 363 of file file_operations.F90.

Here is the call graph for this function:

Variable Documentation

◆ max_str_len

integer (c_int), parameter file_operations::max_str_len = 65536
private

Definition at line 16 of file file_operations.F90.