Generic function to set value, unit, type, and error of a response.
Updates response name, value, and optional unit and error, of
response at position index
to given 4-byte integer value. This
routine does not update the number of responses
request%nresponses
. No update is performed if index
is out of
bounds. An existing response at index
will be overwritten.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(request_type), | intent(inout) | :: | request |
Request type. |
||
integer, | intent(in) | :: | index |
Response index. |
||
character(len=*), | intent(in) | :: | name |
Response name. |
||
integer(kind=i4), | intent(in) | :: | value |
Response value. |
||
character(len=*), | intent(in), | optional | :: | unit |
Response unit. |
|
integer, | intent(in), | optional | :: | error |
Response error. |
Updates response name, value, and optional unit and error, of
response at position index
to given 8-byte integer value. This
routine does not update the number of responses
request%nresponses
. No update is performed if index
is out of
bounds. An existing response at index
will be overwritten.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(request_type), | intent(inout) | :: | request |
Request type. |
||
integer, | intent(in) | :: | index |
Response index. |
||
character(len=*), | intent(in) | :: | name |
Response name. |
||
integer(kind=i8), | intent(in) | :: | value |
Response value. |
||
character(len=*), | intent(in), | optional | :: | unit |
Response unit. |
|
integer, | intent(in), | optional | :: | error |
Response error. |
Updates response name, value, and optional unit and error, of
response at position index
to given logical value. This routine
does not update the number of responses request%nresponses
. No
update is performed if index
is out of bounds. An existing
response at index
will be overwritten.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(request_type), | intent(inout) | :: | request |
Request type. |
||
integer, | intent(in) | :: | index |
Response index. |
||
character(len=*), | intent(in) | :: | name |
Response name. |
||
logical, | intent(in) | :: | value |
Response value. |
||
character(len=*), | intent(in), | optional | :: | unit |
Response unit. |
|
integer, | intent(in), | optional | :: | error |
Response error. |
Updates response name, value, and optional unit and error, of
response at position index
to given 4-byte real value. This
routine does not update the number of responses
request%nresponses
. No update is performed if index
is out of
bounds. An existing response at index
will be overwritten.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(request_type), | intent(inout) | :: | request |
Request type. |
||
integer, | intent(in) | :: | index |
Response index. |
||
character(len=*), | intent(in) | :: | name |
Response name. |
||
real(kind=r4), | intent(in) | :: | value |
Response value. |
||
character(len=*), | intent(in), | optional | :: | unit |
Response unit. |
|
integer, | intent(in), | optional | :: | error |
Response error. |
Updates response name, value, and optional unit and error, of
response at position index
to given 8-byte real value. This
routine does not update the number of responses
request%nresponses
. No update is performed if index
is out of
bounds. An existing response at index
will be overwritten.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(request_type), | intent(inout) | :: | request |
Request type. |
||
integer, | intent(in) | :: | index |
Response index. |
||
character(len=*), | intent(in) | :: | name |
Response name. |
||
real(kind=r8), | intent(in) | :: | value |
Response value. |
||
character(len=*), | intent(in), | optional | :: | unit |
Response unit. |
|
integer, | intent(in), | optional | :: | error |
Response error. |