dcmqrdb/include/dcmtk/dcmqrdb/dcmqrcbf.h

00001 /*
00002  *
00003  *  Copyright (C) 1993-2010, OFFIS e.V.
00004  *  All rights reserved.  See COPYRIGHT file for details.
00005  *
00006  *  This software and supporting documentation were developed by
00007  *
00008  *    OFFIS e.V.
00009  *    R&D Division Health
00010  *    Escherweg 2
00011  *    D-26121 Oldenburg, Germany
00012  *
00013  *
00014  *  Module:  dcmqrdb
00015  *
00016  *  Author:  Marco Eichelberg
00017  *
00018  *  Purpose: class DcmQueryRetrieveFindContext
00019  *
00020  *  Last Update:      $Author: joergr $
00021  *  Update Date:      $Date: 2010-10-14 13:16:41 $
00022  *  CVS/RCS Revision: $Revision: 1.4 $
00023  *  Status:           $State: Exp $
00024  *
00025  *  CVS/RCS Log at end of file
00026  *
00027  */
00028 
00029 #ifndef DCMQRCBF_H
00030 #define DCMQRCBF_H
00031 
00032 #include "dcmtk/config/osconfig.h"    /* make sure OS specific configuration is included first */
00033 #include "dcmtk/dcmnet/dimse.h"
00034 
00035 class DcmQueryRetrieveDatabaseHandle;
00036 class DcmQueryRetrieveOptions;
00037 
00041 class DcmQueryRetrieveFindContext
00042 {
00043 public:
00049     DcmQueryRetrieveFindContext(
00050       DcmQueryRetrieveDatabaseHandle& handle,
00051       const DcmQueryRetrieveOptions& options,
00052       DIC_US priorStat)
00053     : dbHandle(handle)
00054     , options_(options)
00055     , priorStatus(priorStat)
00056     , ourAETitle()
00057     {
00058     }
00059 
00063     void setOurAETitle(const char *ae)
00064     {
00065       if (ae) ourAETitle = ae; else ourAETitle.clear();
00066     }
00067 
00077     void callbackHandler(
00078         OFBool cancelled, T_DIMSE_C_FindRQ *request,
00079         DcmDataset *requestIdentifiers, int responseCount,
00080         T_DIMSE_C_FindRSP *response,
00081         DcmDataset **responseIdentifiers,
00082         DcmDataset **stDetail);
00083 
00084 private:
00085 
00087     DcmQueryRetrieveDatabaseHandle& dbHandle;
00088 
00090     const DcmQueryRetrieveOptions& options_;
00091 
00093     DIC_US priorStatus;
00094 
00096     OFString ourAETitle;
00097 
00098 };
00099 
00100 #endif
00101 
00102 /*
00103  * CVS Log
00104  * $Log: dcmqrcbf.h,v $
00105  * Revision 1.4  2010-10-14 13:16:41  joergr
00106  * Updated copyright header. Added reference to COPYRIGHT file.
00107  *
00108  * Revision 1.3  2009-08-21 09:50:07  joergr
00109  * Replaced tabs by spaces and updated copyright date.
00110  *
00111  * Revision 1.2  2005/12/08 16:04:16  meichel
00112  * Changed include path schema for all DCMTK header files
00113  *
00114  * Revision 1.1  2005/03/30 13:34:50  meichel
00115  * Initial release of module dcmqrdb that will replace module imagectn.
00116  *   It provides a clear interface between the Q/R DICOM front-end and the
00117  *   database back-end. The imagectn code has been re-factored into a minimal
00118  *   class structure.
00119  *
00120  *
00121  */


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