OFFIS DCMTK  Version 3.6.0
dsrtextn.h
1 /*
2  *
3  * Copyright (C) 2000-2010, OFFIS e.V.
4  * All rights reserved. See COPYRIGHT file for details.
5  *
6  * This software and supporting documentation were developed by
7  *
8  * OFFIS e.V.
9  * R&D Division Health
10  * Escherweg 2
11  * D-26121 Oldenburg, Germany
12  *
13  *
14  * Module: dcmsr
15  *
16  * Author: Joerg Riesmeier
17  *
18  * Purpose:
19  * classes: DSRTextTreeNode
20  *
21  * Last Update: $Author: joergr $
22  * Update Date: $Date: 2010-10-14 13:16:33 $
23  * CVS/RCS Revision: $Revision: 1.16 $
24  * Status: $State: Exp $
25  *
26  * CVS/RCS Log at end of file
27  *
28  */
29 
30 
31 #ifndef DSRTEXTN_H
32 #define DSRTEXTN_H
33 
34 #include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */
35 
36 #include "dcmtk/dcmsr/dsrdoctn.h"
37 #include "dcmtk/dcmsr/dsrstrvl.h"
38 
39 
40 /*---------------------*
41  * class declaration *
42  *---------------------*/
43 
47  : public DSRDocumentTreeNode,
48  public DSRStringValue
49 {
50 
51  public:
52 
57  DSRTextTreeNode(const E_RelationshipType relationshipType);
58 
64  DSRTextTreeNode(const E_RelationshipType relationshipType,
65  const OFString &stringValue);
66 
69  virtual ~DSRTextTreeNode();
70 
74  virtual void clear();
75 
80  virtual OFBool isValid() const;
81 
87  virtual OFBool isShort(const size_t flags) const;
88 
97  virtual OFCondition print(STD_NAMESPACE ostream &stream,
98  const size_t flags) const;
99 
105  virtual OFCondition writeXML(STD_NAMESPACE ostream &stream,
106  const size_t flags) const;
107 
108 
109  protected:
110 
115  virtual OFCondition readContentItem(DcmItem &dataset);
116 
121  virtual OFCondition writeContentItem(DcmItem &dataset) const;
122 
128  virtual OFCondition readXMLContentItem(const DSRXMLDocument &doc,
129  DSRXMLCursor cursor);
130 
140  virtual OFCondition renderHTMLContentItem(STD_NAMESPACE ostream &docStream,
141  STD_NAMESPACE ostream &annexStream,
142  const size_t nestingLevel,
143  size_t &annexNumber,
144  const size_t flags) const;
145 
146 
147  private:
148 
149  // --- declaration of default/copy constructor and assignment operator
150 
151  DSRTextTreeNode();
153  DSRTextTreeNode &operator=(const DSRTextTreeNode &);
154 };
155 
156 
157 #endif
158 
159 
160 /*
161  * CVS/RCS Log:
162  * $Log: dsrtextn.h,v $
163  * Revision 1.16 2010-10-14 13:16:33 joergr
164  * Updated copyright header. Added reference to COPYRIGHT file.
165  *
166  * Revision 1.15 2009-10-13 14:57:50 uli
167  * Switched to logging mechanism provided by the "new" oflog module.
168  *
169  * Revision 1.14 2007-11-15 16:33:30 joergr
170  * Added support for output in XHTML 1.1 format.
171  *
172  * Revision 1.13 2006/08/15 16:40:03 meichel
173  * Updated the code in module dcmsr to correctly compile when
174  * all standard C++ classes remain in namespace std.
175  *
176  * Revision 1.12 2006/05/11 09:18:21 joergr
177  * Moved containsExtendedCharacters() from dcmsr to dcmdata module.
178  *
179  * Revision 1.11 2005/12/08 16:05:25 meichel
180  * Changed include path schema for all DCMTK header files
181  *
182  * Revision 1.10 2004/11/22 16:39:09 meichel
183  * Added method that checks if the SR document contains non-ASCII characters
184  * in any of the strings affected by SpecificCharacterSet.
185  *
186  * Revision 1.9 2003/09/15 14:18:54 joergr
187  * Introduced new class to facilitate checking of SR IOD relationship content
188  * constraints. Replaced old implementation distributed over numerous classes.
189  *
190  * Revision 1.8 2003/08/07 12:53:57 joergr
191  * Added readXML functionality. Added support for Chest CAD SR.
192  *
193  * Revision 1.7 2001/11/09 16:10:53 joergr
194  * Added preliminary support for Mammography CAD SR.
195  *
196  * Revision 1.6 2001/09/26 13:04:13 meichel
197  * Adapted dcmsr to class OFCondition
198  *
199  * Revision 1.5 2001/06/01 15:51:05 meichel
200  * Updated copyright header
201  *
202  * Revision 1.4 2000/11/07 18:14:31 joergr
203  * Enhanced support for by-reference relationships.
204  *
205  * Revision 1.3 2000/11/01 16:23:27 joergr
206  * Added support for conversion to XML.
207  *
208  * Revision 1.2 2000/10/23 15:14:13 joergr
209  * Added clear() method.
210  * Added/updated doc++ comments.
211  *
212  * Revision 1.1 2000/10/13 07:49:33 joergr
213  * Added new module 'dcmsr' providing access to DICOM structured reporting
214  * documents (supplement 23). Doc++ documentation not yet completed.
215  *
216  *
217  */


Generated on Thu Dec 20 2012 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.8.2