Inheritance diagram for DSRDateTimeTreeNode:

Public Member Functions | |
| DSRDateTimeTreeNode (const E_RelationshipType relationshipType) | |
| constructor | |
| DSRDateTimeTreeNode (const E_RelationshipType relationshipType, const OFString &stringValue) | |
| constructor | |
| virtual | ~DSRDateTimeTreeNode () |
| destructor | |
| virtual void | clear () |
| clear all member variables. | |
| virtual OFBool | isValid () const |
| check whether the content item is valid. | |
| virtual OFCondition | print (STD_NAMESPACE ostream &stream, const size_t flags) const |
| print content item. | |
| virtual OFCondition | writeXML (STD_NAMESPACE ostream &stream, const size_t flags) const |
| write content item in XML format. | |
Static Public Member Functions | |
| static OFString & | getValueFromXMLNodeContent (const DSRXMLDocument &doc, DSRXMLCursor cursor, OFString &dateTimeValue, const OFBool clearString=OFTrue) |
| get DICOM datetime value from given XML element. | |
Protected Member Functions | |
| virtual OFCondition | readContentItem (DcmItem &dataset) |
| read content item (value) from dataset | |
| virtual OFCondition | writeContentItem (DcmItem &dataset) const |
| write content item (value) to dataset | |
| virtual OFCondition | readXMLContentItem (const DSRXMLDocument &doc, DSRXMLCursor cursor) |
| read content item specific XML data | |
| virtual OFCondition | renderHTMLContentItem (STD_NAMESPACE ostream &docStream, STD_NAMESPACE ostream &annexStream, const size_t nestingLevel, size_t &annexNumber, const size_t flags) const |
| render content item (value) in HTML/XHTML format | |
Private Member Functions | |
| DSRDateTimeTreeNode (const DSRDateTimeTreeNode &) | |
| DSRDateTimeTreeNode & | operator= (const DSRDateTimeTreeNode &) |
Definition at line 46 of file dsrdtitn.h.
| DSRDateTimeTreeNode::DSRDateTimeTreeNode | ( | const E_RelationshipType | relationshipType | ) |
constructor
| relationshipType | type of relationship to the parent tree node. Should not be RT_invalid or RT_isRoot. |
| DSRDateTimeTreeNode::DSRDateTimeTreeNode | ( | const E_RelationshipType | relationshipType, | |
| const OFString & | stringValue | |||
| ) |
constructor
| relationshipType | type of relationship to the parent tree node. Should not be RT_invalid or RT_isRoot. | |
| stringValue | initial string value to be set |
| virtual void DSRDateTimeTreeNode::clear | ( | ) | [virtual] |
clear all member variables.
Please note that the content item might become invalid afterwards.
Reimplemented from DSRDocumentTreeNode.
| virtual OFBool DSRDateTimeTreeNode::isValid | ( | ) | const [virtual] |
check whether the content item is valid.
The content item is valid if the two base classes and the concept name are valid.
Reimplemented from DSRDocumentTreeNode.
| virtual OFCondition DSRDateTimeTreeNode::print | ( | STD_NAMESPACE ostream & | stream, | |
| const size_t | flags | |||
| ) | const [virtual] |
print content item.
A typical output looks like this: contains DATETIME:(,,"Code")="2000101012000000"
| stream | output stream to which the content item should be printed | |
| flags | flag used to customize the output (see DSRTypes::PF_xxx) |
Reimplemented from DSRDocumentTreeNode.
| virtual OFCondition DSRDateTimeTreeNode::writeXML | ( | STD_NAMESPACE ostream & | stream, | |
| const size_t | flags | |||
| ) | const [virtual] |
write content item in XML format.
Uses ISO formatted date/time value.
| stream | output stream to which the XML document is written | |
| flags | flag used to customize the output (see DSRTypes::XF_xxx) |
Reimplemented from DSRDocumentTreeNode.
| static OFString& DSRDateTimeTreeNode::getValueFromXMLNodeContent | ( | const DSRXMLDocument & | doc, | |
| DSRXMLCursor | cursor, | |||
| OFString & | dateTimeValue, | |||
| const OFBool | clearString = OFTrue | |||
| ) | [static] |
get DICOM datetime value from given XML element.
The DICOM DateTime (DT) value is expected to be stored in ISO format as created by writeXML().
| doc | document containing the XML file content | |
| cursor | cursor pointing to the corresponding node | |
| dateTimeValue | reference to string object in which the value should be stored | |
| clearString | flag specifying whether to clear the 'dateTimeValue' or not |
| virtual OFCondition DSRDateTimeTreeNode::readContentItem | ( | DcmItem & | dataset | ) | [protected, virtual] |
read content item (value) from dataset
| dataset | DICOM dataset from which the content item should be read |
Reimplemented from DSRDocumentTreeNode.
| virtual OFCondition DSRDateTimeTreeNode::writeContentItem | ( | DcmItem & | dataset | ) | const [protected, virtual] |
write content item (value) to dataset
| dataset | DICOM dataset to which the content item should be written |
Reimplemented from DSRDocumentTreeNode.
| virtual OFCondition DSRDateTimeTreeNode::readXMLContentItem | ( | const DSRXMLDocument & | doc, | |
| DSRXMLCursor | cursor | |||
| ) | [protected, virtual] |
read content item specific XML data
| doc | document containing the XML file content | |
| cursor | cursor pointing to the starting node |
Reimplemented from DSRDocumentTreeNode.
| virtual OFCondition DSRDateTimeTreeNode::renderHTMLContentItem | ( | STD_NAMESPACE ostream & | docStream, | |
| STD_NAMESPACE ostream & | annexStream, | |||
| const size_t | nestingLevel, | |||
| size_t & | annexNumber, | |||
| const size_t | flags | |||
| ) | const [protected, virtual] |
render content item (value) in HTML/XHTML format
| docStream | output stream to which the main HTML/XHTML document is written | |
| annexStream | output stream to which the HTML/XHTML document annex is written | |
| nestingLevel | current nesting level. Used to render section headings. | |
| annexNumber | reference to the variable where the current annex number is stored. Value is increased automatically by 1 after a new entry has been added. | |
| flags | flag used to customize the output (see DSRTypes::HF_xxx) |
Reimplemented from DSRDocumentTreeNode.