32 #include "dcmtk/config/osconfig.h"
33 #include "dcmtk/ofstd/ofcond.h"
34 #include "dcmtk/dcmdata/dcxfer.h"
35 #include "dcmtk/dcmnet/dimse.h"
116 OFBool extractResponsesToFile,
117 int cancelAfterNResponses);
225 const char *ourTitle,
226 const char *peerTitle,
227 const char *abstractSyntax,
228 E_TransferSyntax preferredTransferSyntax,
229 T_DIMSE_BlockingMode blockMode,
231 Uint32 maxReceivePDULength,
232 OFBool secureConnection,
233 OFBool abortAssociation,
234 unsigned int repeatCount,
235 OFBool extractResponsesToFile,
236 int cancelAfterNResponses,
266 const char *abstractSyntax,
267 E_TransferSyntax preferredTransferSyntax);
292 const char *abstractSyntax,
293 T_DIMSE_BlockingMode blockMode,
295 OFBool extractResponsesToFile,
296 int cancelAfterNResponses,
virtual ~DcmFindSCU()
destructor. Destroys network structure if not done already.
OFCondition setTransportLayer(DcmTransportLayer *tLayer)
enable user-defined transport layer.
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.
T_ASC_Network * net_
pointer to network structure
OFCondition dropNetwork()
destroy network struct.
support class for console applications.
OFBool extractResponsesToFile_
if true, C-FIND-RSP datasets will be stored as DICOM files
virtual ~DcmFindSCUCallback()
destructor
void setPresentationContextID(T_ASC_PresentationContextID presId)
assigns a value to member variable presId_.
factory class which creates transport layer connections.
OFCondition addPresentationContext(T_ASC_Parameters *params, const char *abstractSyntax, E_TransferSyntax preferredTransferSyntax)
add presentation context for given abstract syntax and given preferred transfer syntax to the ACSE pa...
virtual ~DcmFindSCUDefaultCallback()
destructor
OFCondition findSCU(T_ASC_Association *assoc, const char *fname, int repeatCount, const char *abstractSyntax, T_DIMSE_BlockingMode blockMode, int dimse_timeout, OFBool extractResponsesToFile, int cancelAfterNResponses, OFList< OFString > *overrideKeys, DcmFindSCUCallback *callback=NULL) const
perform a single C-FIND transaction on association that is already open.
int cancelAfterNResponses_
if non-negative, a C-FIND-CANCEL will be issued after the given number of incoming C-FIND-RSP message...
DcmFindSCUCallback()
default constructor
OFCondition initializeNetwork(int acse_timeout)
initialize the network structure.
T_ASC_Association * assoc_
pointer to current association. Will contain valid value when callback() is called.
Abstract base class for Find SCU callbacks.
T_ASC_PresentationContextID presId_
current presentation context ID. Will contain valid value when callback() is called.
a class handling the DICOM dataset format (files without meta header)
static OFBool writeToFile(const char *ofname, DcmDataset *dataset)
static helper function that writes the content of the given dataset into a DICOM file (using the DICO...
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.
This class implements a complete DICOM C-FIND SCU, including association set-up, execution of the C-F...
void setAssociation(T_ASC_Association *assoc)
assigns a value to member variable assoc_.
OFCondition performQuery(const char *peer, unsigned int port, const char *ourTitle, const char *peerTitle, const char *abstractSyntax, E_TransferSyntax preferredTransferSyntax, T_DIMSE_BlockingMode blockMode, int dimse_timeout, Uint32 maxReceivePDULength, OFBool secureConnection, OFBool abortAssociation, unsigned int repeatCount, OFBool extractResponsesToFile, int cancelAfterNResponses, OFList< OFString > *overrideKeys, DcmFindSCUCallback *callback=NULL, OFList< OFString > *fileNameList=NULL)
main worker method that negotiates an association, executes one or more C-FIND-RQ transactions...
DcmFindSCUDefaultCallback(OFBool extractResponsesToFile, int cancelAfterNResponses)
constructor
DcmFindSCU()
constructor, does not execute any network-related code
Default implementation of FindSCU callback class.
General purpose class for condition codes.