BraWl
|
read arguments by name or number More...
Public Member Functions | |
logical function | get_arg_num_logical (num, val, exists) |
read by number for logical values | |
logical function | get_arg_name_logical (name, val, exists) |
Read by name for logical values. | |
logical function | get_arg_num_int (num, val, exists) |
read by number for integer values | |
logical function | get_arg_name_int (name, val, exists) |
read by name for integer values | |
logical function | get_arg_num_long (num, val, exists) |
read by number for long integer values | |
logical function | get_arg_name_long (name, val, exists) |
read by name for long integer values | |
logical function | get_arg_num_float (num, val, exists) |
Read by number for single precision (float) values. | |
logical function | get_arg_name_float (name, val, exists) |
read by name for single precision (float) values | |
logical function | get_arg_num_dbl (num, val, exists) |
read by number for double precision values | |
logical function | get_arg_name_dbl (name, val, exists) |
read by name for double precision values | |
logical function | get_arg_num_str (num, val, exists) |
read by number for string/character values | |
logical function | get_arg_name_str (name, val, exists) |
read by name for string values | |
read arguments by name or number
Get arguments. if the first parameter is a string, this is interpreted as the name of the parameter, if an integer, it is the position of the argument in the input list.
name | Name to look up (supply this or num) |
num | Arg. number to look up (supply this or name) |
val | Value to read into, with type matching that to parse as |
exists | Whether the name was found |
Definition at line 73 of file command_line.f90.
logical function command_line::get_arg::get_arg_name_dbl | ( | character(len=*), intent(in) | name, |
real(kind=real64), intent(inout) | val, | ||
logical, intent(out), optional | exists ) |
read by name for double precision values
name | argument name to look up |
val | value to read into |
exists | whether the name was found |
Definition at line 379 of file command_line.f90.
logical function command_line::get_arg::get_arg_name_float | ( | character(len=*), intent(in) | name, |
real(kind=real32), intent(inout) | val, | ||
logical, intent(out), optional | exists ) |
read by name for single precision (float) values
name | argument name to look up |
val | value to read into |
exists | whether the name was found |
Definition at line 453 of file command_line.f90.
logical function command_line::get_arg::get_arg_name_int | ( | character(len=*), intent(in) | name, |
integer(kind=int32), intent(inout) | val, | ||
logical, intent(out), optional | exists ) |
read by name for integer values
name | argument name to look up |
val | value to read into |
exists | whether the name was found |
Definition at line 521 of file command_line.f90.
logical function command_line::get_arg::get_arg_name_logical | ( | character(len=*), intent(in) | name, |
logical, intent(inout) | val, | ||
logical, intent(out), optional | exists ) |
Read by name for logical values.
Note : a flag (name with no '=value' part) will parse as .true. if present, and .false. if not
name | Argument name to look up |
val | Value to read into |
exists | Whether the name was found |
Definition at line 291 of file command_line.f90.
logical function command_line::get_arg::get_arg_name_long | ( | character(len=*), intent(in) | name, |
integer(kind=int64), intent(inout) | val, | ||
logical, intent(out), optional | exists ) |
read by name for long integer values
name | argument name to look up |
val | value to read into |
exists | whether the name was found |
Definition at line 601 of file command_line.f90.
logical function command_line::get_arg::get_arg_name_str | ( | character(len=*), intent(in) | name, |
character(len=*), intent(inout) | val, | ||
logical, intent(out), optional | exists ) |
read by name for string values
Note: if the string passed is shorter than the value, it will be truncated if the length is not known use get_arg_value to get an allocatable string
name | argument name to look up |
val | value to read into |
exists | whether the name was found - this is already contained in the return value, but is given for consistency with the other members |
Definition at line 686 of file command_line.f90.
logical function command_line::get_arg::get_arg_num_dbl | ( | integer, intent(in) | num, |
real(kind=real64), intent(inout) | val, | ||
logical, intent(out), optional | exists ) |
read by number for double precision values
num | argument number to read |
val | value to read into |
exists | whether the name was found |
Definition at line 340 of file command_line.f90.
logical function command_line::get_arg::get_arg_num_float | ( | integer, intent(in) | num, |
real(kind=real32), intent(inout) | val, | ||
logical, intent(out), optional | exists ) |
Read by number for single precision (float) values.
num | argument number to read |
val | value to read into |
exists | whether the name was found |
Definition at line 424 of file command_line.f90.
logical function command_line::get_arg::get_arg_num_int | ( | integer, intent(in) | num, |
integer(kind=int32), intent(inout) | val, | ||
logical, intent(out), optional | exists ) |
read by number for integer values
num | argument number to read |
val | value to read into |
exists | whether the name was found |
Definition at line 482 of file command_line.f90.
logical function command_line::get_arg::get_arg_num_logical | ( | integer, intent(in) | num, |
logical, intent(inout) | val, | ||
logical, intent(out), optional | exists ) |
read by number for logical values
num | argument number to read |
val | value to read into |
exists | whether the name was found |
Definition at line 249 of file command_line.f90.
logical function command_line::get_arg::get_arg_num_long | ( | integer, intent(in) | num, |
integer(kind=int64), intent(inout) | val, | ||
logical, intent(out), optional | exists ) |
read by number for long integer values
num | argument number to read |
val | value to read into |
exists | whether the name was found |
Definition at line 562 of file command_line.f90.
logical function command_line::get_arg::get_arg_num_str | ( | integer, intent(in) | num, |
character(len=*), intent(inout) | val, | ||
logical, intent(out), optional | exists ) |
read by number for string/character values
num | argument number to read |
val | value to read into |
exists | whether the name was found - this is already contained in the return value, but is given for consistency with the other members |
Definition at line 643 of file command_line.f90.