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 DcmQueryRetrieveProcessTable 00023 * 00024 * Last Update: $Author: meichel $ 00025 * Update Date: $Date: 2005/12/08 16:04:26 $ 00026 * Source File: $Source: /share/dicom/cvs-depot/dcmtk/dcmqrdb/include/dcmtk/dcmqrdb/dcmqrptb.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 DCMQRPTB_H 00035 #define DCMQRPTB_H 00036 00037 #include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */ 00038 #include "dcmtk/ofstd/oftypes.h" 00039 #include "dcmtk/ofstd/ofstring.h" 00040 #include "dcmtk/dcmnet/assoc.h" 00041 00042 #define INCLUDE_CTIME 00043 #include "dcmtk/ofstd/ofstdinc.h" 00044 00045 BEGIN_EXTERN_C 00046 #ifdef HAVE_SYS_TIME_H 00047 #include <sys/time.h> 00048 #endif 00049 END_EXTERN_C 00050 00051 00052 class DcmQueryRetrieveProcessSlot; 00053 00054 00059 class DcmQueryRetrieveProcessTable 00060 { 00061 public: 00063 DcmQueryRetrieveProcessTable() { } 00064 00066 virtual ~DcmQueryRetrieveProcessTable(); 00067 00072 void addProcessToTable(int pid, T_ASC_Association * assoc); 00073 00077 size_t countChildProcesses() const 00078 { 00079 return table_.size(); 00080 } 00081 00087 void cleanChildren(OFBool verbose = OFFalse); 00088 00094 OFBool haveProcessWithWriteAccess(const char *calledAETitle) const; 00095 00096 private: 00097 00101 void removeProcessFromTable(int pid); 00102 00104 OFList<DcmQueryRetrieveProcessSlot *> table_; 00105 }; 00106 00107 00108 #endif 00109 00110 /* 00111 * CVS Log 00112 * $Log: dcmqrptb.h,v $ 00113 * Revision 1.2 2005/12/08 16:04:26 meichel 00114 * Changed include path schema for all DCMTK header files 00115 * 00116 * Revision 1.1 2005/03/30 13:34:50 meichel 00117 * Initial release of module dcmqrdb that will replace module imagectn. 00118 * It provides a clear interface between the Q/R DICOM front-end and the 00119 * database back-end. The imagectn code has been re-factored into a minimal 00120 * class structure. 00121 * 00122 * 00123 */