OFFIS DCMTK  Version 3.6.0
dsrnumtn.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: DSRNumTreeNode
20  *
21  * Last Update: $Author: joergr $
22  * Update Date: $Date: 2010-10-14 13:16:32 $
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 DSRNUMTN_H
32 #define DSRNUMTN_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/dsrnumvl.h"
38 
39 
40 /*---------------------*
41  * class declaration *
42  *---------------------*/
43 
47  : public DSRDocumentTreeNode,
49 {
50 
51  public:
52 
57  DSRNumTreeNode(const E_RelationshipType relationshipType);
58 
61  virtual ~DSRNumTreeNode();
62 
66  virtual void clear();
67 
72  virtual OFBool isValid() const;
73 
81  virtual OFCondition print(STD_NAMESPACE ostream &stream,
82  const size_t flags) const;
83 
89  virtual OFCondition writeXML(STD_NAMESPACE ostream &stream,
90  const size_t flags) const;
91 
92 
93  protected:
94 
99  virtual OFCondition readContentItem(DcmItem &dataset);
100 
105  virtual OFCondition writeContentItem(DcmItem &dataset) const;
106 
112  virtual OFCondition readXMLContentItem(const DSRXMLDocument &doc,
113  DSRXMLCursor cursor);
114 
124  virtual OFCondition renderHTMLContentItem(STD_NAMESPACE ostream &docStream,
125  STD_NAMESPACE ostream &annexStream,
126  const size_t nestingLevel,
127  size_t &annexNumber,
128  const size_t flags) const;
129 
130 
131  private:
132 
133  // --- declaration of default/copy constructor and assignment operator
134 
135  DSRNumTreeNode();
137  DSRNumTreeNode &operator=(const DSRNumTreeNode &);
138 };
139 
140 
141 #endif
142 
143 
144 /*
145  * CVS/RCS Log:
146  * $Log: dsrnumtn.h,v $
147  * Revision 1.16 2010-10-14 13:16:32 joergr
148  * Updated copyright header. Added reference to COPYRIGHT file.
149  *
150  * Revision 1.15 2009-10-13 14:57:50 uli
151  * Switched to logging mechanism provided by the "new" oflog module.
152  *
153  * Revision 1.14 2007-11-15 16:33:30 joergr
154  * Added support for output in XHTML 1.1 format.
155  *
156  * Revision 1.13 2006/08/15 16:40:03 meichel
157  * Updated the code in module dcmsr to correctly compile when
158  * all standard C++ classes remain in namespace std.
159  *
160  * Revision 1.12 2006/05/11 09:18:21 joergr
161  * Moved containsExtendedCharacters() from dcmsr to dcmdata module.
162  *
163  * Revision 1.11 2005/12/08 16:05:10 meichel
164  * Changed include path schema for all DCMTK header files
165  *
166  * Revision 1.10 2004/11/22 16:39:09 meichel
167  * Added method that checks if the SR document contains non-ASCII characters
168  * in any of the strings affected by SpecificCharacterSet.
169  *
170  * Revision 1.9 2003/09/15 14:18:54 joergr
171  * Introduced new class to facilitate checking of SR IOD relationship content
172  * constraints. Replaced old implementation distributed over numerous classes.
173  *
174  * Revision 1.8 2003/08/07 12:43:16 joergr
175  * Added readXML functionality. Added support for Chest CAD SR.
176  *
177  * Revision 1.7 2001/11/09 16:10:51 joergr
178  * Added preliminary support for Mammography CAD SR.
179  *
180  * Revision 1.6 2001/09/26 13:04:09 meichel
181  * Adapted dcmsr to class OFCondition
182  *
183  * Revision 1.5 2001/06/01 15:51:02 meichel
184  * Updated copyright header
185  *
186  * Revision 1.4 2000/11/07 18:14:29 joergr
187  * Enhanced support for by-reference relationships.
188  *
189  * Revision 1.3 2000/11/01 16:23:22 joergr
190  * Added support for conversion to XML.
191  *
192  * Revision 1.2 2000/10/23 15:12:12 joergr
193  * Added clear() method.
194  * Added/updated doc++ comments.
195  *
196  * Revision 1.1 2000/10/13 07:49:29 joergr
197  * Added new module 'dcmsr' providing access to DICOM structured reporting
198  * documents (supplement 23). Doc++ documentation not yet completed.
199  *
200  *
201  */


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