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
00035 #ifndef DSRWAVVL_H
00036 #define DSRWAVVL_H
00037
00038 #include "dcmtk/config/osconfig.h"
00039
00040 #include "dcmtk/dcmsr/dsrtypes.h"
00041 #include "dcmtk/dcmsr/dsrcomvl.h"
00042 #include "dcmtk/dcmsr/dsrwavch.h"
00043
00044
00045
00046
00047
00048
00051 class DSRWaveformReferenceValue
00052 : public DSRCompositeReferenceValue
00053 {
00054
00055 friend class DSRContentItem;
00056
00057 public:
00058
00061 DSRWaveformReferenceValue();
00062
00070 DSRWaveformReferenceValue(const OFString &sopClassUID,
00071 const OFString &sopInstanceUID);
00072
00076 DSRWaveformReferenceValue(const DSRWaveformReferenceValue &referenceValue);
00077
00080 virtual ~DSRWaveformReferenceValue();
00081
00086 DSRWaveformReferenceValue &operator=(const DSRWaveformReferenceValue &referenceValue);
00087
00091 virtual void clear();
00092
00099 virtual OFBool isShort(const size_t flags) const;
00100
00109 virtual OFCondition print(ostream &stream,
00110 const size_t flags) const;
00111
00117 virtual OFCondition readXML(const DSRXMLDocument &doc,
00118 DSRXMLCursor cursor);
00119
00126 virtual OFCondition writeXML(ostream &stream,
00127 const size_t flags,
00128 OFConsole *logStream) const;
00129
00139 virtual OFCondition renderHTML(ostream &docStream,
00140 ostream &annexStream,
00141 size_t &annexNumber,
00142 const size_t flags,
00143 OFConsole *logStream) const;
00144
00148 inline const DSRWaveformReferenceValue &getValue() const
00149 {
00150 return *this;
00151 }
00152
00157 OFCondition getValue(DSRWaveformReferenceValue &referenceValue) const;
00158
00165 OFCondition setValue(const DSRWaveformReferenceValue &referenceValue);
00166
00170 inline DSRWaveformChannelList &getChannelList()
00171 {
00172 return ChannelList;
00173 }
00174
00182 OFBool appliesToChannel(const Uint16 multiplexGroupNumber,
00183 const Uint16 channelNumber) const;
00184
00185
00186 protected:
00187
00191 inline DSRWaveformReferenceValue *getValuePtr()
00192 {
00193 return this;
00194 }
00195
00201 virtual OFCondition readItem(DcmItem &dataset,
00202 OFConsole *logStream);
00203
00209 virtual OFCondition writeItem(DcmItem &dataset,
00210 OFConsole *logStream) const;
00211
00217 virtual OFBool checkSOPClassUID(const OFString &sopClassUID) const;
00218
00219
00220 private:
00221
00223 DSRWaveformChannelList ChannelList;
00224 };
00225
00226
00227 #endif
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
00257
00258
00259
00260
00261
00262
00263
00264
00265
00266
00267
00268
00269
00270
00271
00272
00273
00274
00275
00276
00277