dcmqrcbf.h

00001 /*
00002  *
00003  *  Copyright (C) 1993-2005, OFFIS
00004  *
00005  *  This software and supporting documentation were developed by
00006  *
00007  *    Kuratorium OFFIS e.V.
00008  *    Healthcare Information and Communication Systems
00009  *    Escherweg 2
00010  *    D-26121 Oldenburg, Germany
00011  *
00012  *  THIS SOFTWARE IS MADE AVAILABLE,  AS IS,  AND OFFIS MAKES NO  WARRANTY
00013  *  REGARDING  THE  SOFTWARE,  ITS  PERFORMANCE,  ITS  MERCHANTABILITY  OR
00014  *  FITNESS FOR ANY PARTICULAR USE, FREEDOM FROM ANY COMPUTER DISEASES  OR
00015  *  ITS CONFORMITY TO ANY SPECIFICATION. THE ENTIRE RISK AS TO QUALITY AND
00016  *  PERFORMANCE OF THE SOFTWARE IS WITH THE USER.
00017  *
00018  *  Module:  dcmqrdb
00019  *
00020  *  Author:  Marco Eichelberg
00021  *
00022  *  Purpose: class DcmQueryRetrieveFindContext
00023  *
00024  *  Last Update:      $Author: meichel $
00025  *  Update Date:      $Date: 2005/12/08 16:04:16 $
00026  *  Source File:      $Source: /share/dicom/cvs-depot/dcmtk/dcmqrdb/include/dcmtk/dcmqrdb/dcmqrcbf.h,v $
00027  *  CVS/RCS Revision: $Revision: 1.2 $
00028  *  Status:           $State: Exp $
00029  *
00030  *  CVS/RCS Log at end of file
00031  *
00032  */
00033 
00034 #ifndef DCMQRCBF_H
00035 #define DCMQRCBF_H
00036 
00037 #include "dcmtk/config/osconfig.h"    /* make sure OS specific configuration is included first */
00038 #include "dcmtk/dcmnet/dimse.h"
00039 
00040 class DcmQueryRetrieveDatabaseHandle;
00041 class DcmQueryRetrieveOptions;
00042 
00046 class DcmQueryRetrieveFindContext
00047 {
00048 public:
00054     DcmQueryRetrieveFindContext(
00055       DcmQueryRetrieveDatabaseHandle& handle,
00056       const DcmQueryRetrieveOptions& options,
00057       DIC_US priorStat)
00058     : dbHandle(handle)
00059     , options_(options)
00060     , priorStatus(priorStat)
00061     , ourAETitle()
00062     {
00063     }
00064 
00068     void setOurAETitle(const char *ae)
00069     {
00070       if (ae) ourAETitle = ae; else ourAETitle.clear();
00071     }
00072     
00082     void callbackHandler(
00083     OFBool cancelled, T_DIMSE_C_FindRQ *request, 
00084     DcmDataset *requestIdentifiers, int responseCount,
00085     T_DIMSE_C_FindRSP *response,
00086     DcmDataset **responseIdentifiers,
00087     DcmDataset **stDetail);
00088 
00089 private:
00090 
00092     DcmQueryRetrieveDatabaseHandle& dbHandle;
00093 
00095     const DcmQueryRetrieveOptions& options_;
00096 
00098     DIC_US priorStatus;
00099 
00101     OFString ourAETitle;
00102 
00103 };
00104 
00105 #endif
00106 
00107 /*
00108  * CVS Log
00109  * $Log: dcmqrcbf.h,v $
00110  * Revision 1.2  2005/12/08 16:04:16  meichel
00111  * Changed include path schema for all DCMTK header files
00112  *
00113  * Revision 1.1  2005/03/30 13:34:50  meichel
00114  * Initial release of module dcmqrdb that will replace module imagectn.
00115  *   It provides a clear interface between the Q/R DICOM front-end and the
00116  *   database back-end. The imagectn code has been re-factored into a minimal
00117  *   class structure.
00118  *
00119  *
00120  */


Generated on 20 Dec 2005 for OFFIS DCMTK Version 3.5.4 by Doxygen 1.4.5