![]() |
(git:b77b4be)
|
Utility routines to read data from files. Kept as close as possible to the old parser because. More...
Data Types | |
interface | parser_get_object |
Functions/Subroutines | |
character(len=default_path_length+default_string_length) function, public | parser_location (parser) |
return a description of the part of the file actually parsed | |
subroutine, public | parser_read_line (parser, nline, at_end) |
Read the next line from a logical unit "unit" (I/O node only). Skip (nline-1) lines and skip also all comment lines. | |
subroutine, public | parser_get_next_line (parser, nline, at_end) |
Read the next input line and broadcast the input information. Skip (nline-1) lines and skip also all comment lines. | |
subroutine, public | parser_skip_space (parser) |
Skips the whitespaces. | |
character(len=3) function, public | parser_test_next_token (parser, string_length) |
Test next input object. | |
subroutine, public | parser_search_string (parser, string, ignore_case, found, line, begin_line, search_from_begin_of_file) |
Search a string pattern in a file defined by its logical unit number "unit". A case sensitive search is performed, if ignore_case is .FALSE.. begin_line: give back the parser at the beginning of the line matching the search. | |
elemental subroutine, public | read_float_object (string, object, error_message) |
Returns a floating point number read from a string including fraction like z1/z2. | |
elemental subroutine, public | read_integer_object (string, object, error_message) |
Returns an integer number read from a string including products of integer numbers like iz1*iz2*iz3. | |
Utility routines to read data from files. Kept as close as possible to the old parser because.
character (len=default_path_length+default_string_length) function, public cp_parser_methods::parser_location | ( | type(cp_parser_type), intent(in) | parser | ) |
return a description of the part of the file actually parsed
parser | the parser |
Definition at line 69 of file cp_parser_methods.F.
subroutine, public cp_parser_methods::parser_read_line | ( | type(cp_parser_type), intent(inout) | parser, |
integer, intent(in) | nline, | ||
logical, intent(out), optional | at_end | ||
) |
Read the next line from a logical unit "unit" (I/O node only). Skip (nline-1) lines and skip also all comment lines.
parser | ... |
nline | ... |
at_end | ... |
Definition at line 146 of file cp_parser_methods.F.
subroutine, public cp_parser_methods::parser_get_next_line | ( | type(cp_parser_type), intent(inout) | parser, |
integer, intent(in) | nline, | ||
logical, intent(out), optional | at_end | ||
) |
Read the next input line and broadcast the input information. Skip (nline-1) lines and skip also all comment lines.
parser | ... |
nline | ... |
at_end | ... |
Definition at line 420 of file cp_parser_methods.F.
subroutine, public cp_parser_methods::parser_skip_space | ( | type(cp_parser_type), intent(inout) | parser | ) |
Skips the whitespaces.
parser | ... |
Definition at line 450 of file cp_parser_methods.F.
character(len=3) function, public cp_parser_methods::parser_test_next_token | ( | type(cp_parser_type), intent(inout) | parser, |
integer, intent(in), optional | string_length | ||
) |
Test next input object.
parser | ... |
string_length | ... |
Major rewrite to parse also (multiple) products of integer or floating point numbers (23.11.2012,MK)
Definition at line 690 of file cp_parser_methods.F.
subroutine, public cp_parser_methods::parser_search_string | ( | type(cp_parser_type), intent(inout) | parser, |
character(len=*), intent(in) | string, | ||
logical, intent(in) | ignore_case, | ||
logical, intent(out) | found, | ||
character(len=*), intent(out), optional | line, | ||
logical, intent(in), optional | begin_line, | ||
logical, intent(in), optional | search_from_begin_of_file | ||
) |
Search a string pattern in a file defined by its logical unit number "unit". A case sensitive search is performed, if ignore_case is .FALSE.. begin_line: give back the parser at the beginning of the line matching the search.
parser | ... |
string | ... |
ignore_case | ... |
found | ... |
line | ... |
begin_line | ... |
search_from_begin_of_file | ... |
Definition at line 784 of file cp_parser_methods.F.
elemental subroutine, public cp_parser_methods::read_float_object | ( | character(len=*), intent(in) | string, |
real(kind=dp), intent(out) | object, | ||
character(len=*), intent(out) | error_message | ||
) |
Returns a floating point number read from a string including fraction like z1/z2.
string | ... |
object | ... |
error_message | ... |
Definition at line 1257 of file cp_parser_methods.F.
elemental subroutine, public cp_parser_methods::read_integer_object | ( | character(len=*), intent(in) | string, |
integer, intent(out) | object, | ||
character(len=*), intent(out) | error_message | ||
) |
Returns an integer number read from a string including products of integer numbers like iz1*iz2*iz3.
string | ... |
object | ... |
error_message | ... |
Definition at line 1373 of file cp_parser_methods.F.