DCMTK  Version 3.6.1 20120515
OFFIS DICOM Toolkit
Public Member Functions | Protected Attributes | Private Member Functions
DcmFindSCUCallback Class Reference

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

+ Inheritance diagram for DcmFindSCUCallback:

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.

Private Member Functions

 DcmFindSCUCallback (const DcmFindSCUCallback &other)
 private undefined copy constructor
DcmFindSCUCallbackoperator= (const DcmFindSCUCallback &other)
 private undefined assignment operator

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.


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:
requestDIMSE command of the original C-FIND request
responseCountnumber of current response
rspDIMSE command of incoming C-FIND response
responseIdentifiersdataset of incoming C-FIND response

Implemented in DcmFindSCUDefaultCallback.

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:
assocpointer 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:
presIdcurrent presentation context ID

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


Generated on Tue May 15 2012 for DCMTK Version 3.6.1 20120515 by Doxygen 1.7.5.1-20111027