Base (abstract) class upon which FLAP’s concrete classes are built.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
character(len=:), | public, | allocatable | :: | progname |
Program name. |
||
character(len=:), | public, | allocatable | :: | version |
Program version. |
||
character(len=:), | public, | allocatable | :: | help |
Help message. |
||
character(len=:), | public, | allocatable | :: | help_color |
ANSI color of help messages. |
||
character(len=:), | public, | allocatable | :: | help_style |
ANSI style of help messages. |
||
character(len=:), | public, | allocatable | :: | help_markdown |
Longer help message, markdown formatted. |
||
character(len=:), | public, | allocatable | :: | description |
Detailed description. |
||
character(len=:), | public, | allocatable | :: | license |
License description. |
||
character(len=:), | public, | allocatable | :: | authors |
Authors list. |
||
character(len=:), | public, | allocatable | :: | epilog |
Epilogue message. |
||
character(len=:), | public, | allocatable | :: | m_exclude |
Mutually exclude other CLA(s group). |
||
character(len=:), | public, | allocatable | :: | error_message |
Meaningful error message to standard-error. |
||
character(len=:), | public, | allocatable | :: | error_color |
ANSI color of error messages. |
||
character(len=:), | public, | allocatable | :: | error_style |
ANSI style of error messages. |
||
character(len=512), | public, | allocatable | :: | examples(:) |
Examples of correct usage. |
||
integer(kind=I4P), | public | :: | error | = | 0_I4P |
Error trapping flag. |
|
integer(kind=I4P), | public | :: | usage_lun | = | stderr |
Output unit to print help/usage messages |
|
integer(kind=I4P), | public | :: | version_lun | = | stdout |
Output unit to print version message |
|
integer(kind=I4P), | public | :: | error_lun | = | stderr |
Error unit to print error messages |
Free dynamic memory.
Free dynamic memory.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(object), | intent(inout) | :: | self |
Object data. |
Print version.
Print version.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(object), | intent(in) | :: | self |
Object data. |
||
character(len=*), | intent(in), | optional | :: | pref |
Prefixing string. |
Print meaningful error message.
Print meaningful error message to standard-error.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(object), | intent(in) | :: | self |
Object data. |
Set examples of correct usage.
Set examples of correct usage.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(object), | intent(inout) | :: | self |
Object data. |
||
character(len=*), | intent(in), | optional | :: | examples(1:) |
Examples of correct usage. |
Assignment overloading.
Assign two abstract objects.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(object), | intent(inout) | :: | lhs |
Left hand side. |
||
class(object), | intent(in) | :: | rhs |
Rigth hand side. |
type, abstract, public :: object !< Base (abstract) class upon which FLAP's concrete classes are built. character(len=:), allocatable :: progname !< Program name. character(len=:), allocatable :: version !< Program version. character(len=:), allocatable :: help !< Help message. character(len=:), allocatable :: help_color !< ANSI color of help messages. character(len=:), allocatable :: help_style !< ANSI style of help messages. character(len=:), allocatable :: help_markdown !< Longer help message, markdown formatted. character(len=:), allocatable :: description !< Detailed description. character(len=:), allocatable :: license !< License description. character(len=:), allocatable :: authors !< Authors list. character(len=:), allocatable :: epilog !< Epilogue message. character(len=:), allocatable :: m_exclude !< Mutually exclude other CLA(s group). character(len=:), allocatable :: error_message !< Meaningful error message to standard-error. character(len=:), allocatable :: error_color !< ANSI color of error messages. character(len=:), allocatable :: error_style !< ANSI style of error messages. #ifdef __GFORTRAN__ character(512 ), allocatable :: examples(:) !< Examples of correct usage. #else character(len=:), allocatable :: examples(:) !< Examples of correct usage. #endif integer(I4P) :: error=0_I4P !< Error trapping flag. integer(I4P) :: usage_lun=stderr !< Output unit to print help/usage messages integer(I4P) :: version_lun=stdout !< Output unit to print version message integer(I4P) :: error_lun=stderr !< Error unit to print error messages contains ! public methods procedure, pass(self) :: free_object !< Free dynamic memory. procedure, pass(self) :: print_version !< Print version. procedure, pass(self) :: print_error_message !< Print meaningful error message. procedure, pass(self) :: set_examples !< Set examples of correct usage. procedure, pass(lhs ) :: assign_object !< Assignment overloading. endtype object