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 DSRSTRVL_H
00036 #define DSRSTRVL_H
00037
00038 #include "osconfig.h"
00039
00040 #include "dsrtypes.h"
00041
00042 #include "ofstring.h"
00043
00044
00045
00046
00047
00048
00051 class DSRStringValue
00052 {
00053
00054 public:
00055
00058 DSRStringValue();
00059
00064 DSRStringValue(const OFString &stringValue);
00065
00069 DSRStringValue(const DSRStringValue &stringValue);
00070
00073 virtual ~DSRStringValue();
00074
00079 DSRStringValue &operator=(const DSRStringValue &stringValue);
00080
00084 virtual void clear();
00085
00090 virtual OFBool isValid() const;
00091
00102 void print(ostream &stream,
00103 const size_t maxLength = 0) const;
00104
00113 OFCondition read(DcmItem &dataset,
00114 const DcmTagKey &tagKey,
00115 OFConsole *logStream);
00116
00123 OFCondition write(DcmItem &dataset,
00124 const DcmTagKey &tagKey,
00125 OFConsole *logStream) const;
00126
00133 OFCondition readXML(const DSRXMLDocument &doc,
00134 DSRXMLCursor cursor,
00135 const OFBool encoding = OFFalse);
00136
00143 OFCondition renderHTML(ostream &docStream,
00144 const size_t flags,
00145 OFConsole *logStream) const;
00146
00150 inline const OFString &getValue() const
00151 {
00152 return Value;
00153 }
00154
00162 OFCondition setValue(const OFString &stringValue);
00163
00164
00165 protected:
00166
00174 virtual OFBool checkValue(const OFString &stringValue) const;
00175
00176
00177 private:
00178
00180 OFString Value;
00181 };
00182
00183
00184 #endif
00185
00186
00187
00188
00189
00190
00191
00192
00193
00194
00195
00196
00197
00198
00199
00200
00201
00202
00203
00204
00205
00206
00207
00208
00209
00210
00211
00212
00213
00214
00215
00216
00217
00218
00219