OFFIS DCMTK  Version 3.6.0
dsrcomtn.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: DSRCompositeTreeNode
20  *
21  * Last Update: $Author: joergr $
22  * Update Date: $Date: 2010-10-14 13:16:32 $
23  * CVS/RCS Revision: $Revision: 1.15 $
24  * Status: $State: Exp $
25  *
26  * CVS/RCS Log at end of file
27  *
28  */
29 
30 
31 #ifndef DSRCOMTN_H
32 #define DSRCOMTN_H
33 
34 #include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */
35 
36 #include "dcmtk/dcmsr/dsrdoctr.h"
37 #include "dcmtk/dcmsr/dsrcomvl.h"
38 
39 
40 /*---------------------*
41  * class declaration *
42  *---------------------*/
43 
47  : public DSRDocumentTreeNode,
49 {
50 
51  public:
52 
57  DSRCompositeTreeNode(const E_RelationshipType relationshipType);
58 
61  virtual ~DSRCompositeTreeNode();
62 
66  virtual void clear();
67 
72  virtual OFBool isValid() const;
73 
80  virtual OFCondition print(STD_NAMESPACE ostream &stream,
81  const size_t flags) const;
82 
88  virtual OFCondition writeXML(STD_NAMESPACE ostream &stream,
89  const size_t flags) const;
90 
91 
92  protected:
93 
98  virtual OFCondition readContentItem(DcmItem &dataset);
99 
104  virtual OFCondition writeContentItem(DcmItem &dataset) const;
105 
111  virtual OFCondition readXMLContentItem(const DSRXMLDocument &doc,
112  DSRXMLCursor cursor);
113 
123  virtual OFCondition renderHTMLContentItem(STD_NAMESPACE ostream &docStream,
124  STD_NAMESPACE ostream &annexStream,
125  const size_t nestingLevel,
126  size_t &annexNumber,
127  const size_t flags) const;
128 
129 
130  private:
131 
132  // --- declaration of default/copy constructor and assignment operator
133 
136  DSRCompositeTreeNode &operator=(const DSRCompositeTreeNode &);
137 };
138 
139 
140 #endif
141 
142 
143 /*
144  * CVS/RCS Log:
145  * $Log: dsrcomtn.h,v $
146  * Revision 1.15 2010-10-14 13:16:32 joergr
147  * Updated copyright header. Added reference to COPYRIGHT file.
148  *
149  * Revision 1.14 2009-10-13 14:57:50 uli
150  * Switched to logging mechanism provided by the "new" oflog module.
151  *
152  * Revision 1.13 2007-11-15 16:33:30 joergr
153  * Added support for output in XHTML 1.1 format.
154  *
155  * Revision 1.12 2006/08/15 16:40:03 meichel
156  * Updated the code in module dcmsr to correctly compile when
157  * all standard C++ classes remain in namespace std.
158  *
159  * Revision 1.11 2005/12/08 16:04:54 meichel
160  * Changed include path schema for all DCMTK header files
161  *
162  * Revision 1.10 2003/09/15 14:18:54 joergr
163  * Introduced new class to facilitate checking of SR IOD relationship content
164  * constraints. Replaced old implementation distributed over numerous classes.
165  *
166  * Revision 1.9 2003/08/07 12:22:14 joergr
167  * Added readXML functionality.
168  * Added support for Chest CAD SR.
169  * Updated documentation to get rid of doxygen warnings.
170  *
171  * Revision 1.8 2001/11/09 16:10:46 joergr
172  * Added preliminary support for Mammography CAD SR.
173  *
174  * Revision 1.7 2001/09/26 13:04:05 meichel
175  * Adapted dcmsr to class OFCondition
176  *
177  * Revision 1.6 2001/06/01 15:50:59 meichel
178  * Updated copyright header
179  *
180  * Revision 1.5 2000/11/07 18:14:27 joergr
181  * Enhanced support for by-reference relationships.
182  *
183  * Revision 1.4 2000/11/01 16:13:33 joergr
184  * Added support for conversion to XML.
185  *
186  * Revision 1.3 2000/10/23 15:08:59 joergr
187  * Added/updated doc++ comments.
188  *
189  * Revision 1.2 2000/10/20 10:15:42 joergr
190  * Renamed class DSRReferenceValue to DSRCompositeReferenceValue.
191  *
192  * Revision 1.1 2000/10/13 07:49:24 joergr
193  * Added new module 'dcmsr' providing access to DICOM structured reporting
194  * documents (supplement 23). Doc++ documentation not yet completed.
195  *
196  *
197  */


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