dm_request_set Interface

public interface dm_request_set

Generic function to set value, unit, type, and error of a response.


Module Procedures

private pure elemental subroutine request_set_int32(request, index, name, value, unit, error)

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.

Arguments

Type IntentOptional 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.

private pure elemental subroutine request_set_int64(request, index, name, value, unit, 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.

Arguments

Type IntentOptional 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.

private pure elemental subroutine request_set_logical(request, index, name, value, unit, 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.

Arguments

Type IntentOptional 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.

private pure elemental subroutine request_set_real32(request, index, name, value, unit, 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.

Arguments

Type IntentOptional 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.

private pure elemental subroutine request_set_real64(request, index, name, value, unit, 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.

Arguments

Type IntentOptional 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.