Generic function to get value, unit, type, and error of a response.
Returns byte response as single character value, unit, type, and error
of response of name name
.
The routine returns the following error codes in status
:
E_EMPTY
if the request has no responses.E_NOT_FOUND
if a response of the given name does not exist.E_TYPE
if the response value is not of type byte.On error, value
will not be modified, unless default
is passed.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(request_type), | intent(inout) | :: | request |
Request type. |
||
character(len=*), | intent(in) | :: | name |
Response name. |
||
character(len=1), | intent(inout) | :: | value |
Response value. |
||
character(len=RESPONSE_UNIT_LEN), | intent(out), | optional | :: | unit |
Response unit. |
|
integer, | intent(out), | optional | :: | type |
Response value type. |
|
integer, | intent(out), | optional | :: | error |
Response error. |
|
integer, | intent(out), | optional | :: | status |
Error code. |
|
character(len=1), | intent(in), | optional | :: | default |
Default value. |
Returns 4-byte integer response value, unit, type, and error of
response of name name
.
The routine returns the following error codes in status
:
E_EMPTY
if the request has no responses.E_NOT_FOUND
if a response of the given name does not exist.E_TYPE
if the response value is not of type int32.On error, value
will not be modified, unless default
is passed.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(request_type), | intent(inout) | :: | request |
Request type. |
||
character(len=*), | intent(in) | :: | name |
Response name. |
||
integer(kind=i4), | intent(inout) | :: | value |
Response value. |
||
character(len=RESPONSE_UNIT_LEN), | intent(out), | optional | :: | unit |
Response unit. |
|
integer, | intent(out), | optional | :: | type |
Response value type. |
|
integer, | intent(out), | optional | :: | error |
Response error. |
|
integer, | intent(out), | optional | :: | status |
Error code. |
|
integer(kind=i4), | intent(in), | optional | :: | default |
Default value. |
Returns 8-byte integer response value, unit, type, and error of
response of name name
.
The routine returns the following error codes in status
:
E_EMPTY
if the request has no responses.E_NOT_FOUND
if a response of the given name does not exist.E_TYPE
if the response value is not of type int64.On error, value
will not be modified, unless default
is passed.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(request_type), | intent(inout) | :: | request |
Request type. |
||
character(len=*), | intent(in) | :: | name |
Response name. |
||
integer(kind=i8), | intent(inout) | :: | value |
Response value. |
||
character(len=RESPONSE_UNIT_LEN), | intent(out), | optional | :: | unit |
Response unit. |
|
integer, | intent(out), | optional | :: | type |
Response value type. |
|
integer, | intent(out), | optional | :: | error |
Response error. |
|
integer, | intent(out), | optional | :: | status |
Error code. |
|
integer(kind=i8), | intent(in), | optional | :: | default |
Default value. |
Returns logical response value, unit, type, and error of response of
name name
.
The routine returns the following error codes in status
:
E_EMPTY
if the request has no responses.E_NOT_FOUND
if a response of the given name does not exist.E_TYPE
if the response value is not of type logical.On error, value
will not be modified, unless default
is passed.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(request_type), | intent(inout) | :: | request |
Request type. |
||
character(len=*), | intent(in) | :: | name |
Response name. |
||
logical, | intent(inout) | :: | value |
Response value. |
||
character(len=RESPONSE_UNIT_LEN), | intent(out), | optional | :: | unit |
Response unit. |
|
integer, | intent(out), | optional | :: | type |
Response value type. |
|
integer, | intent(out), | optional | :: | error |
Response error. |
|
integer, | intent(out), | optional | :: | status |
Error code. |
|
logical, | intent(in), | optional | :: | default |
Default value. |
Returns 4-byte real response value, unit, type, and error of
response of name name
.
The routine returns the following error codes in status
:
E_EMPTY
if the request has no responses.E_NOT_FOUND
if a response of the given name does not exist.E_TYPE
if the response value is not of type real32.On error, value
will not be modified, unless default
is passed.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(request_type), | intent(inout) | :: | request |
Request type. |
||
character(len=*), | intent(in) | :: | name |
Response name. |
||
real(kind=r4), | intent(inout) | :: | value |
Response value. |
||
character(len=RESPONSE_UNIT_LEN), | intent(out), | optional | :: | unit |
Response unit. |
|
integer, | intent(out), | optional | :: | type |
Response value type. |
|
integer, | intent(out), | optional | :: | error |
Response error. |
|
integer, | intent(out), | optional | :: | status |
Error code. |
|
real(kind=r4), | intent(in), | optional | :: | default |
Default value. |
Returns 8-byte real response value, unit, type, and error of
response of name name
.
The routine returns the following error codes in status
:
E_EMPTY
if the request has no responses.E_NOT_FOUND
if a response of the given name does not exist.E_TYPE
if the response value is not of type real64.On error, value
will not be modified, unless default
is passed.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(request_type), | intent(inout) | :: | request |
Request type. |
||
character(len=*), | intent(in) | :: | name |
Response name. |
||
real(kind=r8), | intent(inout) | :: | value |
Response value. |
||
character(len=RESPONSE_UNIT_LEN), | intent(out), | optional | :: | unit |
Response unit. |
|
integer, | intent(out), | optional | :: | type |
Response value type. |
|
integer, | intent(out), | optional | :: | error |
Response error. |
|
integer, | intent(out), | optional | :: | status |
Error code. |
|
real(kind=r8), | intent(in), | optional | :: | default |
Default value. |
Returns response of name name
.
The routine returns the following error codes in status
:
E_EMPTY
if the request has no responses.E_NOT_FOUND
if a response of the given name does not exist.On error, an empty response will be returned, unless default
is
passed.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(request_type), | intent(inout) | :: | request |
Request type. |
||
character(len=*), | intent(in) | :: | name |
Response name. |
||
type(response_type), | intent(out) | :: | response |
Response type. |
||
integer, | intent(out), | optional | :: | status |
Error code. |
|
type(response_type), | intent(in), | optional | :: | default |
Default response. |