Generic function to add response.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(request_type), | intent(inout) | :: | request |
Request type. |
||
| character(len=*), | intent(in) | :: | name |
Response name. |
||
| character(len=*), | intent(in) | :: | unit |
Response unit. |
||
| integer(kind=i4), | intent(in) | :: | value |
Response value. |
||
| integer, | intent(in), | optional | :: | error |
Response error. |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(request_type), | intent(inout) | :: | request |
Request type. |
||
| character(len=*), | intent(in) | :: | name |
Response name. |
||
| character(len=*), | intent(in) | :: | unit |
Response unit. |
||
| integer(kind=i8), | intent(in) | :: | value |
Response value. |
||
| integer, | intent(in), | optional | :: | error |
Response error. |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(request_type), | intent(inout) | :: | request |
Request type. |
||
| character(len=*), | intent(in) | :: | name |
Response name. |
||
| character(len=*), | intent(in) | :: | unit |
Response unit. |
||
| real(kind=r4), | intent(in) | :: | value |
Response value. |
||
| integer, | intent(in), | optional | :: | error |
Response error. |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(request_type), | intent(inout) | :: | request |
Request type. |
||
| character(len=*), | intent(in) | :: | name |
Response name. |
||
| character(len=*), | intent(in) | :: | unit |
Response unit. |
||
| real(kind=r8), | intent(in) | :: | value |
Response value. |
||
| integer, | intent(in), | optional | :: | error |
Response error. |
Validates and appends response to the given request.
The function returns the following error codes:
E_BOUNDS if the responses array is full.E_INVALID if the response is invalid.The request attribute nresponses must be between 0 and one less
than REQUEST_MAX_NRESPONSES for the response to be added.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(request_type), | intent(inout) | :: | request |
Request type. |
||
| type(response_type), | intent(inout) | :: | response |
Response to add. |