|
DCMTK
Version 3.6.2
OFFIS DICOM Toolkit
|
Base class for tree node annotations. More...
Public Member Functions | |
| DSRTreeNodeAnnotation (const OFString &text=OFString()) | |
| (default) constructor More... | |
| virtual | ~DSRTreeNodeAnnotation () |
| destructor | |
| operator const OFString & () const | |
| conversion operator that returns the currently stored annotation text | |
| OFBool | operator== (const DSRTreeNodeAnnotation &annotation) const |
| comparison operator. More... | |
| OFBool | operator!= (const DSRTreeNodeAnnotation &annotation) const |
| comparison operator. More... | |
| void | clear () |
| clear the currently stored annotation text | |
| OFBool | isEmpty () const |
| check whether the annotation is empty, i.e. whether the internally stored character string (text) has an empty value More... | |
| const OFString & | getText () const |
| get annotation text, i.e. the internally stored character string More... | |
| void | setText (const OFString &text) |
| set annotation text, i.e. the internally stored character string More... | |
Private Attributes | |
| OFString | Text |
| internally stored character strings (text) | |
Base class for tree node annotations.
Currently, this class supports textual annotations only.
(default) constructor
| text | optional character string that should be set as the initial value of the annotation text |
|
inline |
get annotation text, i.e. the internally stored character string
References Text.
|
inline |
check whether the annotation is empty, i.e. whether the internally stored character string (text) has an empty value
References OFString::empty(), and Text.
Referenced by DSRTreeNodeCursor< DSRDocumentTreeNode >::gotoNode(), and DSRTree< DSRDocumentTreeNode >::gotoNode().
|
inline |
comparison operator.
Two annotations are not equal, if the internally stored character strings (text) have different values.
| annotation | annotation which should be compared to the current one |
References Text.
|
inline |
comparison operator.
Two annotations are equal, if the internally stored character strings (text) have the same value.
| annotation | annotation which should be compared to the current one |
References Text.
|
inline |
set annotation text, i.e. the internally stored character string
| text | character string that should be set as the current value of the annotation text. Use an empty string ("") to delete the value. |
References Text.