Inheritance diagram for DSRStringValue:
Public Member Functions | |
DSRStringValue () | |
default contructor | |
DSRStringValue (const OFString &stringValue) | |
constructor The string value is only set if it passed the validity check (see setValue()). | |
DSRStringValue (const DSRStringValue &stringValue) | |
copy constructor | |
virtual | ~DSRStringValue () |
destructor | |
DSRStringValue & | operator= (const DSRStringValue &stringValue) |
assignment operator | |
virtual void | clear () |
clear all internal variables. | |
virtual OFBool | isValid () const |
check whether the current code is valid. | |
void | print (ostream &stream, const size_t maxLength=0) const |
print string value. | |
OFCondition | read (DcmItem &dataset, const DcmTagKey &tagKey, OFConsole *logStream) |
read string value from dataset. | |
OFCondition | write (DcmItem &dataset, const DcmTagKey &tagKey, OFConsole *logStream) const |
write string value to dataset | |
OFCondition | readXML (const DSRXMLDocument &doc, DSRXMLCursor cursor, const OFBool encoding=OFFalse) |
read string value from XML document | |
OFCondition | renderHTML (ostream &docStream, const size_t flags, OFConsole *logStream) const |
render string value in HTML format | |
const OFString & | getValue () const |
get string value | |
OFCondition | setValue (const OFString &stringValue) |
set string value. | |
OFBool | valueContainsExtendedCharacters () const |
check if this value contains non-ASCII characters. | |
Protected Member Functions | |
virtual OFBool | checkValue (const OFString &stringValue) const |
check the specified string value for validity. | |
Private Attributes | |
OFString | Value |
string value (various VRs, mandatory) |
Definition at line 51 of file dsrstrvl.h.
|
constructor The string value is only set if it passed the validity check (see setValue()).
|
|
copy constructor
|
|
check the specified string value for validity. This base class just checks that the string value is not empty (since all corresponding DICOM attributes are type 1). Derived classes might overwrite this method to perform more sophisticated tests.
|
|
clear all internal variables. Please note that the string value might become invalid afterwards. Reimplemented in DSRDateTreeNode, DSRDateTimeTreeNode, DSRPNameTreeNode, DSRTextTreeNode, DSRTimeTreeNode, and DSRUIDRefTreeNode. |
|
get string value
Definition at line 150 of file dsrstrvl.h. References Value. |
|
check whether the current code is valid. See checkValue() for details.
Reimplemented in DSRDateTreeNode, DSRDateTimeTreeNode, DSRPNameTreeNode, DSRTextTreeNode, DSRTimeTreeNode, and DSRUIDRefTreeNode. |
|
assignment operator
|
|
print string value. The output of a typical string value looks like this: "Short text" or "Very long t..." (incl. the quotation marks).
Reimplemented in DSRDateTreeNode, DSRDateTimeTreeNode, DSRPNameTreeNode, DSRTextTreeNode, DSRTimeTreeNode, and DSRUIDRefTreeNode. |
|
read string value from dataset. If error/warning output is enabled a warning message is printed if the string value does not conform with the type (= 1) and value multiplicity (= 1).
|
|
read string value from XML document
|
|
render string value in HTML format
|
|
set string value. Before setting the string value it is checked (see checkValue()). If the value is invalid the current value is not replaced and remains unchanged. Use clear() to empty the string value (which becomes invalid afterwards).
|
|
check if this value contains non-ASCII characters.
|
|
write string value to dataset
|