tests/tools/scu.cc
// Standard handler for C-FIND message responses
Standard handler for C-FIND message responses
Standard handler for C - FIND message responses
OFCondition DcmSCU::handleFINDResponse(const T_ASC_PresentationContextID ,
                                       QRResponse *response,
                                       OFBool &waitForNextResponse)
{
  if (!isConnected())
    return DIMSE_ILLEGALASSOCIATION;
  if (response == NULL)
    return DIMSE_NULLKEY;
  DCMNET_DEBUG("Handling C-FIND Response");
  switch (response->m_status) {
    case STATUS_Pending:
    case STATUS_FIND_Pending_WarningUnsupportedOptionalKeys:
      waitForNextResponse = OFTrue;
      DCMNET_DEBUG("One or more pending C-FIND responses");
      break;
    case STATUS_Success:
      waitForNextResponse = OFFalse;
      DCMNET_DEBUG("Received final C-FIND response, no more C-FIND responses expected");
      break;
    default:
      waitForNextResponse = OFFalse;
      DCMNET_DEBUG("Status tells not to wait for further C-FIND responses");
      break;
  } 
  return EC_Normal;
}
OFCondition DcmSCU :: handleFINDResponse ( const T_ASC_PresentationContextID , QRResponse * response , OFBool & waitForNextResponse ) { if ( ! isConnected ( ) ) return DIMSE_ILLEGALASSOCIATION ; if ( response == NULL ) return DIMSE_NULLKEY ; DCMNET_DEBUG ( " " ) ; switch ( response -> m_status ) { case STATUS_Pending : case STATUS_FIND_Pending_WarningUnsupportedOptionalKeys : waitForNextResponse = OFTrue ; DCMNET_DEBUG ( " " ) ; break ; case STATUS_Success : waitForNextResponse = OFFalse ; DCMNET_DEBUG ( " " ) ; break ; default : waitForNextResponse = OFFalse ; DCMNET_DEBUG ( " " ) ; break ; } return EC_Normal ; }
Standard handler for C-FIND message responses
Standard handler for C - FIND message responses
/* presID */ /* in this case the current C-FIND-RSP indicates that */ /* there will be some more results */ /* in this case the current C-FIND-RSP indicates that */ /* there are no more records that match the search mask */ /* in all other cases, don't expect further responses to come */ //switch