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: DSRTextTreeNode 00020 * 00021 * Last Update: $Author: joergr $ 00022 * Update Date: $Date: 2010-10-14 13:16:33 $ 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 DSRTEXTN_H 00032 #define DSRTEXTN_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/dsrstrvl.h" 00038 00039 00040 /*---------------------* 00041 * class declaration * 00042 *---------------------*/ 00043 00046 class DSRTextTreeNode 00047 : public DSRDocumentTreeNode, 00048 public DSRStringValue 00049 { 00050 00051 public: 00052 00057 DSRTextTreeNode(const E_RelationshipType relationshipType); 00058 00064 DSRTextTreeNode(const E_RelationshipType relationshipType, 00065 const OFString &stringValue); 00066 00069 virtual ~DSRTextTreeNode(); 00070 00074 virtual void clear(); 00075 00080 virtual OFBool isValid() const; 00081 00087 virtual OFBool isShort(const size_t flags) const; 00088 00097 virtual OFCondition print(STD_NAMESPACE ostream &stream, 00098 const size_t flags) const; 00099 00105 virtual OFCondition writeXML(STD_NAMESPACE ostream &stream, 00106 const size_t flags) const; 00107 00108 00109 protected: 00110 00115 virtual OFCondition readContentItem(DcmItem &dataset); 00116 00121 virtual OFCondition writeContentItem(DcmItem &dataset) const; 00122 00128 virtual OFCondition readXMLContentItem(const DSRXMLDocument &doc, 00129 DSRXMLCursor cursor); 00130 00140 virtual OFCondition renderHTMLContentItem(STD_NAMESPACE ostream &docStream, 00141 STD_NAMESPACE ostream &annexStream, 00142 const size_t nestingLevel, 00143 size_t &annexNumber, 00144 const size_t flags) const; 00145 00146 00147 private: 00148 00149 // --- declaration of default/copy constructor and assignment operator 00150 00151 DSRTextTreeNode(); 00152 DSRTextTreeNode(const DSRTextTreeNode &); 00153 DSRTextTreeNode &operator=(const DSRTextTreeNode &); 00154 }; 00155 00156 00157 #endif 00158 00159 00160 /* 00161 * CVS/RCS Log: 00162 * $Log: dsrtextn.h,v $ 00163 * Revision 1.16 2010-10-14 13:16:33 joergr 00164 * Updated copyright header. Added reference to COPYRIGHT file. 00165 * 00166 * Revision 1.15 2009-10-13 14:57:50 uli 00167 * Switched to logging mechanism provided by the "new" oflog module. 00168 * 00169 * Revision 1.14 2007-11-15 16:33:30 joergr 00170 * Added support for output in XHTML 1.1 format. 00171 * 00172 * Revision 1.13 2006/08/15 16:40:03 meichel 00173 * Updated the code in module dcmsr to correctly compile when 00174 * all standard C++ classes remain in namespace std. 00175 * 00176 * Revision 1.12 2006/05/11 09:18:21 joergr 00177 * Moved containsExtendedCharacters() from dcmsr to dcmdata module. 00178 * 00179 * Revision 1.11 2005/12/08 16:05:25 meichel 00180 * Changed include path schema for all DCMTK header files 00181 * 00182 * Revision 1.10 2004/11/22 16:39:09 meichel 00183 * Added method that checks if the SR document contains non-ASCII characters 00184 * in any of the strings affected by SpecificCharacterSet. 00185 * 00186 * Revision 1.9 2003/09/15 14:18:54 joergr 00187 * Introduced new class to facilitate checking of SR IOD relationship content 00188 * constraints. Replaced old implementation distributed over numerous classes. 00189 * 00190 * Revision 1.8 2003/08/07 12:53:57 joergr 00191 * Added readXML functionality. Added support for Chest CAD SR. 00192 * 00193 * Revision 1.7 2001/11/09 16:10:53 joergr 00194 * Added preliminary support for Mammography CAD SR. 00195 * 00196 * Revision 1.6 2001/09/26 13:04:13 meichel 00197 * Adapted dcmsr to class OFCondition 00198 * 00199 * Revision 1.5 2001/06/01 15:51:05 meichel 00200 * Updated copyright header 00201 * 00202 * Revision 1.4 2000/11/07 18:14:31 joergr 00203 * Enhanced support for by-reference relationships. 00204 * 00205 * Revision 1.3 2000/11/01 16:23:27 joergr 00206 * Added support for conversion to XML. 00207 * 00208 * Revision 1.2 2000/10/23 15:14:13 joergr 00209 * Added clear() method. 00210 * Added/updated doc++ comments. 00211 * 00212 * Revision 1.1 2000/10/13 07:49:33 joergr 00213 * Added new module 'dcmsr' providing access to DICOM structured reporting 00214 * documents (supplement 23). Doc++ documentation not yet completed. 00215 * 00216 * 00217 */