Module for handling natural persons.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer, | public, | parameter | :: | PERSON_NAME_LEN | = | 80 |
Max. name length. |
| integer, | public, | parameter | :: | PERSON_MAIL_LEN | = | 80 |
Max. address length. |
| integer, | public, | parameter | :: | PERSON_PHONE_LEN | = | 80 |
Max. phone number length |
Returns .true. if persons are equal.
Returns .true. if both persons are equal.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(person_type), | intent(in) | :: | person1 |
First person. |
||
| type(person_type), | intent(in) | :: | person2 |
Second person. |
Person type to store name and contact details.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| character(len=PERSON_NAME_LEN), | public | :: | name | = | ' ' |
Person name. |
|
| character(len=PERSON_MAIL_LEN), | public | :: | = | ' ' |
Person e-mail address. |
||
| character(len=PERSON_PHONE_LEN), | public | :: | phone | = | ' ' |
Person phone number. |
Returns .true. if both persons are equal.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(person_type), | intent(in) | :: | person1 |
First person. |
||
| type(person_type), | intent(in) | :: | person2 |
Second person. |
Returns .true. if the person has a e-mail address.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(person_type), | intent(in) | :: | person |
Person type. |
Returns .true. if the person has a name.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(person_type), | intent(in) | :: | person |
Person type. |