00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef DCMQRPTB_H
00030 #define DCMQRPTB_H
00031
00032 #include "dcmtk/config/osconfig.h"
00033 #include "dcmtk/ofstd/oftypes.h"
00034 #include "dcmtk/ofstd/ofstring.h"
00035 #include "dcmtk/dcmnet/assoc.h"
00036
00037 #define INCLUDE_CTIME
00038 #include "dcmtk/ofstd/ofstdinc.h"
00039
00040 BEGIN_EXTERN_C
00041 #ifdef HAVE_SYS_TIME_H
00042 #include <sys/time.h>
00043 #endif
00044 END_EXTERN_C
00045
00046
00047 class DcmQueryRetrieveProcessSlot;
00048
00049
00054 class DcmQueryRetrieveProcessTable
00055 {
00056 public:
00058 DcmQueryRetrieveProcessTable() { }
00059
00061 virtual ~DcmQueryRetrieveProcessTable();
00062
00067 void addProcessToTable(int pid, T_ASC_Association * assoc);
00068
00072 size_t countChildProcesses() const
00073 {
00074 return table_.size();
00075 }
00076
00081 void cleanChildren();
00082
00088 OFBool haveProcessWithWriteAccess(const char *calledAETitle) const;
00089
00090 private:
00091
00095 void removeProcessFromTable(int pid);
00096
00098 OFList<DcmQueryRetrieveProcessSlot *> table_;
00099 };
00100
00101
00102 #endif
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126