DcmFindSCUCallback Class Reference

Abstract base class for Find SCU callbacks. More...

Inheritance diagram for DcmFindSCUCallback:

DcmFindSCUDefaultCallback List of all members.

Public Member Functions

 DcmFindSCUCallback ()
 default constructor
virtual ~DcmFindSCUCallback ()
 destructor
virtual void callback (T_DIMSE_C_FindRQ *request, int responseCount, T_DIMSE_C_FindRSP *rsp, DcmDataset *responseIdentifiers)=0
 callback method that is called once for each incoming C-FIND-RSP message.
void setAssociation (T_ASC_Association *assoc)
 assigns a value to member variable assoc_.
void setPresentationContextID (T_ASC_PresentationContextID presId)
 assigns a value to member variable presId_.

Protected Attributes

T_ASC_Associationassoc_
 pointer to current association. Will contain valid value when callback() is called.
T_ASC_PresentationContextID presId_
 current presentation context ID. Will contain valid value when callback() is called.

Detailed Description

Abstract base class for Find SCU callbacks.

During a C-FIND operation, the callback() method of a callback handler object derived from this class is called once for each incoming C-FIND-RSP message. The callback method has access to the original C-FIND-RQ message (but not the request dataset), the current C-FIND-RSP message including its dataset, the number of the current request, the association over which the request is received and the presentation context ID. The callback is needed to process the incoming message (e.g., display on screen, add to some list, store to file). The callback may also issue a C-FIND-CANCEL message if needed. Implementations may provide their own callbacks, which must be derived from this base class.

Definition at line 58 of file dfindscu.h.


Member Function Documentation

virtual void DcmFindSCUCallback::callback ( T_DIMSE_C_FindRQ request,
int  responseCount,
T_DIMSE_C_FindRSP rsp,
DcmDataset responseIdentifiers 
) [pure virtual]

callback method that is called once for each incoming C-FIND-RSP message.

Parameters:
request DIMSE command of the original C-FIND request
responseCount number of current response
rsp DIMSE command of incoming C-FIND response
responseIdentifiers dataset of incoming C-FIND response

Implemented in DcmFindSCUDefaultCallback.

void DcmFindSCUCallback::setAssociation ( T_ASC_Association assoc  ) 

assigns a value to member variable assoc_.

Used by FindSCU code (class DcmFindSCU) to store a pointer to the current association before the callback object is used.

Parameters:
assoc pointer to current association

void DcmFindSCUCallback::setPresentationContextID ( T_ASC_PresentationContextID  presId  ) 

assigns a value to member variable presId_.

Used by FindSCU code (class DcmFindSCU) to store the current presentation context ID before the callback object is used.

Parameters:
presId current presentation context ID


The documentation for this class was generated from the following file:


Generated on 6 Jan 2011 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.5.1