00001 /* 00002 * 00003 * Copyright (C) 2000-2010, OFFIS e.V. 00004 * All rights reserved. See COPYRIGHT file for details. 00005 * 00006 * This software and supporting documentation were developed by 00007 * 00008 * OFFIS e.V. 00009 * R&D Division Health 00010 * Escherweg 2 00011 * D-26121 Oldenburg, Germany 00012 * 00013 * 00014 * Module: dcmsr 00015 * 00016 * Author: Joerg Riesmeier 00017 * 00018 * Purpose: 00019 * classes: DSRNumTreeNode 00020 * 00021 * Last Update: $Author: joergr $ 00022 * Update Date: $Date: 2010-10-14 13:16:32 $ 00023 * CVS/RCS Revision: $Revision: 1.16 $ 00024 * Status: $State: Exp $ 00025 * 00026 * CVS/RCS Log at end of file 00027 * 00028 */ 00029 00030 00031 #ifndef DSRNUMTN_H 00032 #define DSRNUMTN_H 00033 00034 #include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */ 00035 00036 #include "dcmtk/dcmsr/dsrdoctn.h" 00037 #include "dcmtk/dcmsr/dsrnumvl.h" 00038 00039 00040 /*---------------------* 00041 * class declaration * 00042 *---------------------*/ 00043 00046 class DSRNumTreeNode 00047 : public DSRDocumentTreeNode, 00048 public DSRNumericMeasurementValue 00049 { 00050 00051 public: 00052 00057 DSRNumTreeNode(const E_RelationshipType relationshipType); 00058 00061 virtual ~DSRNumTreeNode(); 00062 00066 virtual void clear(); 00067 00072 virtual OFBool isValid() const; 00073 00081 virtual OFCondition print(STD_NAMESPACE ostream &stream, 00082 const size_t flags) const; 00083 00089 virtual OFCondition writeXML(STD_NAMESPACE ostream &stream, 00090 const size_t flags) const; 00091 00092 00093 protected: 00094 00099 virtual OFCondition readContentItem(DcmItem &dataset); 00100 00105 virtual OFCondition writeContentItem(DcmItem &dataset) const; 00106 00112 virtual OFCondition readXMLContentItem(const DSRXMLDocument &doc, 00113 DSRXMLCursor cursor); 00114 00124 virtual OFCondition renderHTMLContentItem(STD_NAMESPACE ostream &docStream, 00125 STD_NAMESPACE ostream &annexStream, 00126 const size_t nestingLevel, 00127 size_t &annexNumber, 00128 const size_t flags) const; 00129 00130 00131 private: 00132 00133 // --- declaration of default/copy constructor and assignment operator 00134 00135 DSRNumTreeNode(); 00136 DSRNumTreeNode(const DSRNumTreeNode &); 00137 DSRNumTreeNode &operator=(const DSRNumTreeNode &); 00138 }; 00139 00140 00141 #endif 00142 00143 00144 /* 00145 * CVS/RCS Log: 00146 * $Log: dsrnumtn.h,v $ 00147 * Revision 1.16 2010-10-14 13:16:32 joergr 00148 * Updated copyright header. Added reference to COPYRIGHT file. 00149 * 00150 * Revision 1.15 2009-10-13 14:57:50 uli 00151 * Switched to logging mechanism provided by the "new" oflog module. 00152 * 00153 * Revision 1.14 2007-11-15 16:33:30 joergr 00154 * Added support for output in XHTML 1.1 format. 00155 * 00156 * Revision 1.13 2006/08/15 16:40:03 meichel 00157 * Updated the code in module dcmsr to correctly compile when 00158 * all standard C++ classes remain in namespace std. 00159 * 00160 * Revision 1.12 2006/05/11 09:18:21 joergr 00161 * Moved containsExtendedCharacters() from dcmsr to dcmdata module. 00162 * 00163 * Revision 1.11 2005/12/08 16:05:10 meichel 00164 * Changed include path schema for all DCMTK header files 00165 * 00166 * Revision 1.10 2004/11/22 16:39:09 meichel 00167 * Added method that checks if the SR document contains non-ASCII characters 00168 * in any of the strings affected by SpecificCharacterSet. 00169 * 00170 * Revision 1.9 2003/09/15 14:18:54 joergr 00171 * Introduced new class to facilitate checking of SR IOD relationship content 00172 * constraints. Replaced old implementation distributed over numerous classes. 00173 * 00174 * Revision 1.8 2003/08/07 12:43:16 joergr 00175 * Added readXML functionality. Added support for Chest CAD SR. 00176 * 00177 * Revision 1.7 2001/11/09 16:10:51 joergr 00178 * Added preliminary support for Mammography CAD SR. 00179 * 00180 * Revision 1.6 2001/09/26 13:04:09 meichel 00181 * Adapted dcmsr to class OFCondition 00182 * 00183 * Revision 1.5 2001/06/01 15:51:02 meichel 00184 * Updated copyright header 00185 * 00186 * Revision 1.4 2000/11/07 18:14:29 joergr 00187 * Enhanced support for by-reference relationships. 00188 * 00189 * Revision 1.3 2000/11/01 16:23:22 joergr 00190 * Added support for conversion to XML. 00191 * 00192 * Revision 1.2 2000/10/23 15:12:12 joergr 00193 * Added clear() method. 00194 * Added/updated doc++ comments. 00195 * 00196 * Revision 1.1 2000/10/13 07:49:29 joergr 00197 * Added new module 'dcmsr' providing access to DICOM structured reporting 00198 * documents (supplement 23). Doc++ documentation not yet completed. 00199 * 00200 * 00201 */