OFFIS DCMTK  Version 3.6.0
dsrcontn.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: DSRContainerTreeNode
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 DSRCONTN_H
32 #define DSRCONTN_H
33 
34 #include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */
35 
36 #include "dcmtk/dcmsr/dsrdoctr.h"
37 
38 
39 /*---------------------*
40  * class declaration *
41  *---------------------*/
42 
46  : public DSRDocumentTreeNode
47 {
48 
49  public:
50 
57  DSRContainerTreeNode(const E_RelationshipType relationshipType,
58  const E_ContinuityOfContent continuityOfContent = COC_Separate);
59 
62  virtual ~DSRContainerTreeNode();
63 
67  virtual void clear();
68 
74  virtual OFBool isValid() const;
75 
81  virtual OFBool isShort(const size_t flags) const;
82 
90  virtual OFCondition print(STD_NAMESPACE ostream &stream,
91  const size_t flags) const;
92 
98  virtual OFCondition writeXML(STD_NAMESPACE ostream &stream,
99  const size_t flags) const;
100 
114  virtual OFCondition renderHTML(STD_NAMESPACE ostream &docStream,
115  STD_NAMESPACE ostream &annexStream,
116  const size_t nestingLevel,
117  size_t &annexNumber,
118  const size_t flags) const;
119 
126  {
127  return ContinuityOfContent;
128  }
129 
136  OFCondition setContinuityOfContent(const E_ContinuityOfContent continuityOfContent);
137 
138 
139  protected:
140 
145  virtual OFCondition readContentItem(DcmItem &dataset);
146 
151  virtual OFCondition writeContentItem(DcmItem &dataset) const;
152 
158  virtual OFCondition readXMLContentItem(const DSRXMLDocument &doc,
159  DSRXMLCursor cursor);
160 
170  virtual OFCondition renderHTMLContentItem(STD_NAMESPACE ostream &docStream,
171  STD_NAMESPACE ostream &annexStream,
172  const size_t nestingLevel,
173  size_t &annexNumber,
174  const size_t flags) const;
175 
176 
177  private:
178 
181 
182 
183  // --- declaration of default/copy constructor and assignment operator
184 
187  DSRContainerTreeNode &operator=(const DSRContainerTreeNode &);
188 };
189 
190 
191 #endif
192 
193 
194 /*
195  * CVS/RCS Log:
196  * $Log: dsrcontn.h,v $
197  * Revision 1.15 2010-10-14 13:16:32 joergr
198  * Updated copyright header. Added reference to COPYRIGHT file.
199  *
200  * Revision 1.14 2009-10-13 14:57:50 uli
201  * Switched to logging mechanism provided by the "new" oflog module.
202  *
203  * Revision 1.13 2007-11-15 16:33:30 joergr
204  * Added support for output in XHTML 1.1 format.
205  *
206  * Revision 1.12 2006/08/15 16:40:03 meichel
207  * Updated the code in module dcmsr to correctly compile when
208  * all standard C++ classes remain in namespace std.
209  *
210  * Revision 1.11 2005/12/08 16:04:56 meichel
211  * Changed include path schema for all DCMTK header files
212  *
213  * Revision 1.10 2003/09/15 14:18:54 joergr
214  * Introduced new class to facilitate checking of SR IOD relationship content
215  * constraints. Replaced old implementation distributed over numerous classes.
216  *
217  * Revision 1.9 2003/08/07 12:23:17 joergr
218  * Added readXML functionality.
219  * Updated documentation to get rid of doxygen warnings.
220  *
221  * Revision 1.8 2001/11/09 16:10:47 joergr
222  * Added preliminary support for Mammography CAD SR.
223  *
224  * Revision 1.7 2001/09/26 13:04:05 meichel
225  * Adapted dcmsr to class OFCondition
226  *
227  * Revision 1.6 2001/06/01 15:51:00 meichel
228  * Updated copyright header
229  *
230  * Revision 1.5 2000/11/07 18:14:28 joergr
231  * Enhanced support for by-reference relationships.
232  *
233  * Revision 1.4 2000/11/01 16:14:26 joergr
234  * Added support for conversion to XML.
235  *
236  * Revision 1.3 2000/10/23 15:09:27 joergr
237  * Added/updated doc++ comments.
238  *
239  * Revision 1.2 2000/10/18 17:01:17 joergr
240  * Made some functions inline.
241  *
242  * Revision 1.1 2000/10/13 07:49:24 joergr
243  * Added new module 'dcmsr' providing access to DICOM structured reporting
244  * documents (supplement 23). Doc++ documentation not yet completed.
245  *
246  *
247  */


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