DMPACK derived type enumerators and utilities.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public, | parameter | :: | TYPE_NONE | = | 0 |
Invalid type. |
integer, | public, | parameter | :: | TYPE_NODE | = | 1 |
Node. |
integer, | public, | parameter | :: | TYPE_SENSOR | = | 2 |
Sensor. |
integer, | public, | parameter | :: | TYPE_TARGET | = | 3 |
Target. |
integer, | public, | parameter | :: | TYPE_OBSERV | = | 4 |
Observation. |
integer, | public, | parameter | :: | TYPE_REQUEST | = | 5 |
Request of observation. |
integer, | public, | parameter | :: | TYPE_RESPONSE | = | 6 |
Response of request. |
integer, | public, | parameter | :: | TYPE_LOG | = | 7 |
Log. |
integer, | public, | parameter | :: | TYPE_BEAT | = | 8 |
Heartbeat. |
integer, | public, | parameter | :: | TYPE_DP | = | 9 |
X/Y data point. |
integer, | public, | parameter | :: | TYPE_LAST | = | 9 |
Never use this. |
integer, | public, | parameter | :: | TYPE_NAME_LEN | = | 8 |
Max. type name length. |
character(len=*), | public, | parameter | :: | TYPE_NAMES(TYPE_NONE:TYPE_LAST) | = | [character(len=TYPE_NAME_LEN)::'none', 'node', 'sensor', 'target', 'observ', 'request', 'response', 'log', 'beat', 'dp'] |
Type names array. |
Returns type from given name. If name
is longer than
TYPE_NAME_LEN
, only the characters from 1
to TYPE_NAME_LEN
are
compared.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | name |
Derived type name. |
Returns .true.
if given type enumerator is valid. TYPE_NONE
is
an invalid type.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | type |
Type enumerator. |