Soil Water Balance (SWB2)
Loading...
Searching...
No Matches
file_operations::ascii_file_t Type Reference
Collaboration diagram for file_operations::ascii_file_t:

Public Member Functions

generic open (this, sfilename, scommentchars, sdelimiters, lhasheader)
generic open (this, sfilename, lquiet)
generic close (this)
generic isopen (this)
generic iseof (this)
generic exists (this, sfilename)
generic iscomment (this)
generic countlines (this)
generic numlines (this)
generic numrecords (this)
generic currentlinenum (this)
generic unit (this)
generic, public readheader (this)
generic, public readline (this)
generic, public writeline (this, stext)

Public Attributes

character(len=:), allocatable sfilename
character(len=:), allocatable sdelimiters
character(len=:), allocatable scommentchars
type(fstring_list_tslcolnames
logical(c_bool) remove_extra_delimiters = FALSE
integer(c_int) icurrentlinenum = 0
integer(c_int) inumberoflines = 0
integer(c_int) inumberofrecords = 0
integer(c_int) inumberofheaderlines = 1
logical(c_bool) lisopen = FALSE
logical(c_bool) lreadonly = TRUE
logical(c_bool) leof = FALSE
integer(c_int) iunitnum
integer(c_int) istat
character(len=max_str_lensbuf
character(len=:), allocatable stmissingvalue

Private Member Functions

procedure, private open_file_read_access_sub (this, sfilename, scommentchars, sdelimiters, lhasheader)
procedure, private open_file_write_access_sub (this, sfilename, lquiet)
procedure, private close_file_sub (this)
procedure, private is_file_open_fn (this)
procedure, private have_we_reached_the_eof_fn (this)
procedure, private does_file_exist_fn (this, sfilename)
procedure, private is_current_line_a_comment_fn (this)
procedure, private count_number_of_lines_sub (this)
procedure, private return_num_lines_fn (this)
procedure, private return_num_records_fn (this)
procedure, private return_current_linenum_fn (this)
procedure, private return_fortran_unit_number_fn (this)
procedure, private read_header_fn (this)
procedure, private read_line_of_data_fn (this)
procedure, private write_line_of_data_sub (this, stext)

Detailed Description

Definition at line 18 of file file_operations.F90.

Member Function/Subroutine Documentation

◆ close()

generic file_operations::ascii_file_t::close ( class (ascii_file_t) this)

Definition at line 45 of file file_operations.F90.

Here is the call graph for this function:

◆ close_file_sub()

procedure, private file_operations::ascii_file_t::close_file_sub ( class (ascii_file_t) this)
private

Definition at line 44 of file file_operations.F90.

◆ count_number_of_lines_sub()

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

Definition at line 59 of file file_operations.F90.

◆ countlines()

generic file_operations::ascii_file_t::countlines ( class (ascii_file_t), intent(inout) this)

Definition at line 60 of file file_operations.F90.

Here is the call graph for this function:

◆ currentlinenum()

generic file_operations::ascii_file_t::currentlinenum ( class (ascii_file_t) this)

Definition at line 69 of file file_operations.F90.

Here is the call graph for this function:

◆ does_file_exist_fn()

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

Definition at line 53 of file file_operations.F90.

◆ exists()

generic file_operations::ascii_file_t::exists ( class (ascii_file_t) this,
character (len=*), intent(in) sfilename )

Definition at line 54 of file file_operations.F90.

Here is the call graph for this function:

◆ have_we_reached_the_eof_fn()

procedure, private file_operations::ascii_file_t::have_we_reached_the_eof_fn ( class (ascii_file_t) this)
private

Definition at line 50 of file file_operations.F90.

◆ is_current_line_a_comment_fn()

procedure, private file_operations::ascii_file_t::is_current_line_a_comment_fn ( class (ascii_file_t) this)
private

Definition at line 56 of file file_operations.F90.

◆ is_file_open_fn()

procedure, private file_operations::ascii_file_t::is_file_open_fn ( class (ascii_file_t) this)
private

Definition at line 47 of file file_operations.F90.

◆ iscomment()

generic file_operations::ascii_file_t::iscomment ( class (ascii_file_t) this)

Definition at line 57 of file file_operations.F90.

Here is the call graph for this function:

◆ iseof()

generic file_operations::ascii_file_t::iseof ( class (ascii_file_t) this)

Definition at line 51 of file file_operations.F90.

Here is the call graph for this function:

◆ isopen()

generic file_operations::ascii_file_t::isopen ( class (ascii_file_t) this)

Definition at line 48 of file file_operations.F90.

Here is the call graph for this function:

◆ numlines()

generic file_operations::ascii_file_t::numlines ( class (ascii_file_t) this)

Definition at line 63 of file file_operations.F90.

Here is the call graph for this function:

◆ numrecords()

generic file_operations::ascii_file_t::numrecords ( class (ascii_file_t) this)

Definition at line 66 of file file_operations.F90.

Here is the call graph for this function:

◆ open() [1/2]

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

Definition at line 41 of file file_operations.F90.

◆ open() [2/2]

generic file_operations::ascii_file_t::open ( 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 )

Definition at line 41 of file file_operations.F90.

Here is the call graph for this function:

◆ open_file_read_access_sub()

procedure, private file_operations::ascii_file_t::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 39 of file file_operations.F90.

◆ open_file_write_access_sub()

procedure, private file_operations::ascii_file_t::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 40 of file file_operations.F90.

◆ read_header_fn()

procedure, private file_operations::ascii_file_t::read_header_fn ( class (ascii_file_t), intent(inout) this)
private

Definition at line 74 of file file_operations.F90.

◆ read_line_of_data_fn()

procedure, private file_operations::ascii_file_t::read_line_of_data_fn ( class (ascii_file_t), intent(inout) this)
private

Definition at line 77 of file file_operations.F90.

◆ readheader()

generic, public file_operations::ascii_file_t::readheader ( class (ascii_file_t), intent(inout) this)

Definition at line 75 of file file_operations.F90.

Here is the call graph for this function:

◆ readline()

generic, public file_operations::ascii_file_t::readline ( class (ascii_file_t), intent(inout) this)

Definition at line 78 of file file_operations.F90.

Here is the call graph for this function:

◆ return_current_linenum_fn()

procedure, private file_operations::ascii_file_t::return_current_linenum_fn ( class (ascii_file_t) this)
private

Definition at line 68 of file file_operations.F90.

◆ return_fortran_unit_number_fn()

procedure, private file_operations::ascii_file_t::return_fortran_unit_number_fn ( class (ascii_file_t) this)
private

Definition at line 71 of file file_operations.F90.

◆ return_num_lines_fn()

procedure, private file_operations::ascii_file_t::return_num_lines_fn ( class (ascii_file_t) this)
private

Definition at line 62 of file file_operations.F90.

◆ return_num_records_fn()

procedure, private file_operations::ascii_file_t::return_num_records_fn ( class (ascii_file_t) this)
private

Definition at line 65 of file file_operations.F90.

◆ unit()

generic file_operations::ascii_file_t::unit ( class (ascii_file_t) this)

Definition at line 72 of file file_operations.F90.

Here is the call graph for this function:

◆ write_line_of_data_sub()

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

Definition at line 80 of file file_operations.F90.

◆ writeline()

generic, public file_operations::ascii_file_t::writeline ( class (ascii_file_t), intent(inout) this,
character (len=*), intent(in) stext )

Definition at line 81 of file file_operations.F90.

Here is the call graph for this function:

Member Data Documentation

◆ icurrentlinenum

integer (c_int) file_operations::ascii_file_t::icurrentlinenum = 0

Definition at line 25 of file file_operations.F90.

◆ inumberofheaderlines

integer (c_int) file_operations::ascii_file_t::inumberofheaderlines = 1

Definition at line 28 of file file_operations.F90.

◆ inumberoflines

integer (c_int) file_operations::ascii_file_t::inumberoflines = 0

Definition at line 26 of file file_operations.F90.

◆ inumberofrecords

integer (c_int) file_operations::ascii_file_t::inumberofrecords = 0

Definition at line 27 of file file_operations.F90.

◆ istat

integer (c_int) file_operations::ascii_file_t::istat

Definition at line 33 of file file_operations.F90.

◆ iunitnum

integer (c_int) file_operations::ascii_file_t::iunitnum

Definition at line 32 of file file_operations.F90.

◆ leof

logical (c_bool) file_operations::ascii_file_t::leof = FALSE

Definition at line 31 of file file_operations.F90.

◆ lisopen

logical (c_bool) file_operations::ascii_file_t::lisopen = FALSE

Definition at line 29 of file file_operations.F90.

◆ lreadonly

logical (c_bool) file_operations::ascii_file_t::lreadonly = TRUE

Definition at line 30 of file file_operations.F90.

◆ remove_extra_delimiters

logical (c_bool) file_operations::ascii_file_t::remove_extra_delimiters = FALSE

Definition at line 24 of file file_operations.F90.

◆ sbuf

character (len=max_str_len) file_operations::ascii_file_t::sbuf

Definition at line 34 of file file_operations.F90.

◆ scommentchars

character (len=:), allocatable file_operations::ascii_file_t::scommentchars

Definition at line 22 of file file_operations.F90.

◆ sdelimiters

character (len=:), allocatable file_operations::ascii_file_t::sdelimiters

Definition at line 21 of file file_operations.F90.

◆ sfilename

character (len=:), allocatable file_operations::ascii_file_t::sfilename

Definition at line 20 of file file_operations.F90.

◆ slcolnames

type (fstring_list_t) file_operations::ascii_file_t::slcolnames

Definition at line 23 of file file_operations.F90.

◆ stmissingvalue

character (len=:), allocatable file_operations::ascii_file_t::stmissingvalue

Definition at line 35 of file file_operations.F90.


The documentation for this type was generated from the following file: