DCMTK
Version 3.6.5
OFFIS DICOM Toolkit
|
Default implementation of FindSCU callback class. More...
Public Member Functions | |
DcmFindSCUDefaultCallback (DcmFindSCUExtractMode extractResponses, int cancelAfterNResponses, const char *outputDirectory=NULL, STD_NAMESPACE ofstream *outputStream=NULL) | |
constructor More... | |
virtual | ~DcmFindSCUDefaultCallback () |
destructor | |
virtual void | callback (T_DIMSE_C_FindRQ *request, int &responseCount, T_DIMSE_C_FindRSP *rsp, DcmDataset *responseIdentifiers) |
callback method that is called once for each incoming C-FIND-RSP message. More... | |
![]() | |
DcmFindSCUCallback () | |
default constructor | |
virtual | ~DcmFindSCUCallback () |
destructor | |
void | setAssociation (T_ASC_Association *assoc) |
assigns a value to member variable assoc_. More... | |
void | setPresentationContextID (T_ASC_PresentationContextID presId) |
assigns a value to member variable presId_. More... | |
Private Attributes | |
DcmFindSCUExtractMode | extractResponses_ |
mode specifying whether and how to extract C-FIND responses. | |
int | cancelAfterNResponses_ |
if non-negative, a C-FIND-CANCEL will be issued after the given number of incoming C-FIND-RSP messages. | |
OFString | outputDirectory_ |
directory used to store the output files (e.g. response datasets). | |
STD_NAMESPACE ofstream * | outputStream_ |
pointer to output stream that is used when extractResponses_ is FEM_singleXMLFile. | |
Additional Inherited Members | |
![]() | |
T_ASC_Association * | assoc_ |
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. | |
Default implementation of FindSCU callback class.
This implementation is used when no explicit callback is passed by the user, e.g. in the findscu tool.
DcmFindSCUDefaultCallback::DcmFindSCUDefaultCallback | ( | DcmFindSCUExtractMode | extractResponses, |
int | cancelAfterNResponses, | ||
const char * | outputDirectory = NULL , |
||
STD_NAMESPACE ofstream * | outputStream = NULL |
||
) |
constructor
extractResponses | mode specifying whether and how to extract C-FIND responses. |
cancelAfterNResponses | if non-negative, a C-FIND-CANCEL will be issued after the given number of incoming C-FIND-RSP messages. |
outputDirectory | directory used to store the output files (e.g. response datasets). If NULL, the current directory is used. |
outputStream | pointer to output stream that is used when extractResponses is set to FEM_singleXMLFile. |
|
virtual |
callback method that is called once for each incoming C-FIND-RSP message.
request | DIMSE command of the original C-FIND request. |
responseCount | a reference to the integer indicating the count of received responses. |
rsp | DIMSE command of incoming C-FIND response. |
responseIdentifiers | dataset of incoming C-FIND response. |
Implements DcmFindSCUCallback.