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
00030
00031
00032
00033
00034 #ifndef __DVPSRSL_H__
00035 #define __DVPSRSL_H__
00036
00037 #include "dcmtk/config/osconfig.h"
00038 #include "dcmtk/ofstd/oflist.h"
00039 #include "dcmtk/dcmdata/dctk.h"
00040
00041
00042 class DVPSReferencedSeries;
00043 class DVPSReferencedImage;
00044
00050 class DVPSReferencedSeries_PList
00051 {
00052 public:
00054 DVPSReferencedSeries_PList();
00055
00057 DVPSReferencedSeries_PList(const DVPSReferencedSeries_PList& copy);
00058
00063 DVPSReferencedSeries_PList *clone() { return new DVPSReferencedSeries_PList(*this); }
00064
00066 virtual ~DVPSReferencedSeries_PList();
00067
00076 OFCondition read(DcmItem &dset);
00077
00084 OFCondition write(DcmItem &dset);
00085
00090 void clear();
00091
00096 OFBool isValid();
00097
00102 OFBool checkSOPClass(const char *uid);
00103
00110 DVPSReferencedSeries *findSeriesReference(const char *seriesUID);
00111
00119 DVPSReferencedImage *findImageReference(const char *seriesUID, const char *instanceUID);
00120
00126 void removeSeriesReference(const char *seriesUID);
00127
00134 void removeImageReference(const char *seriesUID, const char *instanceUID);
00135
00152 OFCondition addImageReference(
00153 const char *seriesUID,
00154 const char *sopclassUID,
00155 const char *instanceUID,
00156 const char *frames=NULL,
00157 const char *aetitle=NULL,
00158 const char *filesetID=NULL,
00159 const char *filesetUID=NULL);
00160
00164 size_t numberOfImageReferences();
00165
00177 OFCondition getImageReference(
00178 size_t idx,
00179 OFString& seriesUID,
00180 OFString& sopclassUID,
00181 OFString& instanceUID,
00182 OFString& frames,
00183 OFString& aetitle,
00184 OFString& filesetID,
00185 OFString& filesetUID);
00186
00192 void setLog(OFConsole *stream, OFBool verbMode, OFBool dbgMode);
00193
00194 private:
00195
00197 DVPSReferencedSeries_PList& operator=(const DVPSReferencedSeries_PList&);
00198
00201 OFList<DVPSReferencedSeries *> list_;
00202
00205 OFConsole *logstream;
00206
00209 OFBool verboseMode;
00210
00213 OFBool debugMode;
00214
00215 };
00216
00217 #endif
00218
00219
00220
00221
00222
00223
00224
00225
00226
00227
00228
00229
00230
00231
00232
00233
00234
00235
00236
00237
00238
00239
00240
00241
00242
00243
00244
00245
00246
00247
00248
00249
00250
00251
00252
00253
00254
00255
00256