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: DSRCompositeTreeNode 00020 * 00021 * Last Update: $Author: joergr $ 00022 * Update Date: $Date: 2010-10-14 13:16:32 $ 00023 * CVS/RCS Revision: $Revision: 1.15 $ 00024 * Status: $State: Exp $ 00025 * 00026 * CVS/RCS Log at end of file 00027 * 00028 */ 00029 00030 00031 #ifndef DSRCOMTN_H 00032 #define DSRCOMTN_H 00033 00034 #include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */ 00035 00036 #include "dcmtk/dcmsr/dsrdoctr.h" 00037 #include "dcmtk/dcmsr/dsrcomvl.h" 00038 00039 00040 /*---------------------* 00041 * class declaration * 00042 *---------------------*/ 00043 00046 class DSRCompositeTreeNode 00047 : public DSRDocumentTreeNode, 00048 public DSRCompositeReferenceValue 00049 { 00050 00051 public: 00052 00057 DSRCompositeTreeNode(const E_RelationshipType relationshipType); 00058 00061 virtual ~DSRCompositeTreeNode(); 00062 00066 virtual void clear(); 00067 00072 virtual OFBool isValid() const; 00073 00080 virtual OFCondition print(STD_NAMESPACE ostream &stream, 00081 const size_t flags) const; 00082 00088 virtual OFCondition writeXML(STD_NAMESPACE ostream &stream, 00089 const size_t flags) const; 00090 00091 00092 protected: 00093 00098 virtual OFCondition readContentItem(DcmItem &dataset); 00099 00104 virtual OFCondition writeContentItem(DcmItem &dataset) const; 00105 00111 virtual OFCondition readXMLContentItem(const DSRXMLDocument &doc, 00112 DSRXMLCursor cursor); 00113 00123 virtual OFCondition renderHTMLContentItem(STD_NAMESPACE ostream &docStream, 00124 STD_NAMESPACE ostream &annexStream, 00125 const size_t nestingLevel, 00126 size_t &annexNumber, 00127 const size_t flags) const; 00128 00129 00130 private: 00131 00132 // --- declaration of default/copy constructor and assignment operator 00133 00134 DSRCompositeTreeNode(); 00135 DSRCompositeTreeNode(const DSRCompositeTreeNode &); 00136 DSRCompositeTreeNode &operator=(const DSRCompositeTreeNode &); 00137 }; 00138 00139 00140 #endif 00141 00142 00143 /* 00144 * CVS/RCS Log: 00145 * $Log: dsrcomtn.h,v $ 00146 * Revision 1.15 2010-10-14 13:16:32 joergr 00147 * Updated copyright header. Added reference to COPYRIGHT file. 00148 * 00149 * Revision 1.14 2009-10-13 14:57:50 uli 00150 * Switched to logging mechanism provided by the "new" oflog module. 00151 * 00152 * Revision 1.13 2007-11-15 16:33:30 joergr 00153 * Added support for output in XHTML 1.1 format. 00154 * 00155 * Revision 1.12 2006/08/15 16:40:03 meichel 00156 * Updated the code in module dcmsr to correctly compile when 00157 * all standard C++ classes remain in namespace std. 00158 * 00159 * Revision 1.11 2005/12/08 16:04:54 meichel 00160 * Changed include path schema for all DCMTK header files 00161 * 00162 * Revision 1.10 2003/09/15 14:18:54 joergr 00163 * Introduced new class to facilitate checking of SR IOD relationship content 00164 * constraints. Replaced old implementation distributed over numerous classes. 00165 * 00166 * Revision 1.9 2003/08/07 12:22:14 joergr 00167 * Added readXML functionality. 00168 * Added support for Chest CAD SR. 00169 * Updated documentation to get rid of doxygen warnings. 00170 * 00171 * Revision 1.8 2001/11/09 16:10:46 joergr 00172 * Added preliminary support for Mammography CAD SR. 00173 * 00174 * Revision 1.7 2001/09/26 13:04:05 meichel 00175 * Adapted dcmsr to class OFCondition 00176 * 00177 * Revision 1.6 2001/06/01 15:50:59 meichel 00178 * Updated copyright header 00179 * 00180 * Revision 1.5 2000/11/07 18:14:27 joergr 00181 * Enhanced support for by-reference relationships. 00182 * 00183 * Revision 1.4 2000/11/01 16:13:33 joergr 00184 * Added support for conversion to XML. 00185 * 00186 * Revision 1.3 2000/10/23 15:08:59 joergr 00187 * Added/updated doc++ comments. 00188 * 00189 * Revision 1.2 2000/10/20 10:15:42 joergr 00190 * Renamed class DSRReferenceValue to DSRCompositeReferenceValue. 00191 * 00192 * Revision 1.1 2000/10/13 07:49:24 joergr 00193 * Added new module 'dcmsr' providing access to DICOM structured reporting 00194 * documents (supplement 23). Doc++ documentation not yet completed. 00195 * 00196 * 00197 */