|
Globals Library 1.0
|
Public Member Functions | |
| procedure, pass, public | init (this, lun_err, fn, lun, io_flag, mandatory_input, folder, verbose, info) |
| Static constructor for globals::file. | |
| procedure, pass, public | kill (this, lun_err) |
| Static destructor for globals::file. | |
| procedure, pass, public | info (this, lun) |
| Info procedure for globals::file. | |
Static Public Member Functions | |
| procedure, nopass, public | get_dirname (str_file) |
| Get directory name. | |
Public Attributes | |
| logical | exist = .false. |
| Logical flag to check if file exists. | |
| integer | lun |
| I/O unit number. | |
| character(len=256) | fn |
| File or directory name. | |
| character(len=256) | fnloc |
| Local file or directory name. | |
Definition at line 49 of file modGlobals.f90.
| procedure, pass, public globals::file::init | ( | class(file), intent(inout) | this, |
| integer, intent(in) | lun_err, | ||
| character(len=*), intent(in) | fn, | ||
| integer, intent(in) | lun, | ||
| character(len=*), intent(in) | io_flag, | ||
| logical, intent(in), optional | mandatory_input, | ||
| logical, intent(in), optional | folder, | ||
| logical, intent(in), optional | verbose, | ||
| integer, intent(inout), optional | info ) |
Static constructor for globals::file.
| [in] | lun_err | unit number for error messages |
| [in] | fn | name of the file |
| [in] | lun | unit number to associate to the file |
| [in] | io_flag | "in" if filename is an input file and its existence must be checked, "out" if it is an output file |
| [in] | mandatory_input | (optional) specify if input file is mandatory: .true.: file is mandatory, stop if file does not exists (default value) .false.: file is optional, proceed if file does not exists |
| [in] | folder | (optional) specify if input file is a file or a folder:
|
| [in] | verbose | (optional) logical flag for additional messages |
| [in,out] | info | (optional) flag for existence of file: returns -1 if file does not exist |
Definition at line 61 of file modGlobals.f90.
| procedure, pass, public globals::file::kill | ( | class(file), intent(inout) | this, |
| integer, intent(in) | lun_err ) |
Static destructor for globals::file.
| [in] | lun_err | unit number for output error message |
Definition at line 63 of file modGlobals.f90.
| procedure, pass, public globals::file::info | ( | class(file), intent(in) | this, |
| integer, intent(in) | lun ) |
Info procedure for globals::file.
Print the name of the file and the associated unit number
| [in] | lun | unit number for output message |
Definition at line 65 of file modGlobals.f90.
|
static |
Get directory name.
Get directory name
| [in] | lun | unit number for output message |
Definition at line 67 of file modGlobals.f90.
| logical globals::file::exist = .false. |
Logical flag to check if file exists.
Definition at line 51 of file modGlobals.f90.
| integer globals::file::lun |
I/O unit number.
Definition at line 53 of file modGlobals.f90.
| character(len=256) globals::file::fn |
File or directory name.
Definition at line 55 of file modGlobals.f90.
| character(len=256) globals::file::fnloc |
Local file or directory name.
Definition at line 57 of file modGlobals.f90.