OFFIS DCMTK  Version 3.6.0
dsrpnmtn.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: DSRPNameTreeNode
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 DSRPNMTN_H
32 #define DSRPNMTN_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  DSRPNameTreeNode(const E_RelationshipType relationshipType);
58 
64  DSRPNameTreeNode(const E_RelationshipType relationshipType,
65  const OFString &stringValue);
66 
69  virtual ~DSRPNameTreeNode();
70 
74  virtual void clear();
75 
80  virtual OFBool isValid() const;
81 
88  virtual OFCondition print(STD_NAMESPACE ostream &stream,
89  const size_t flags) const;
90 
96  virtual OFCondition writeXML(STD_NAMESPACE ostream &stream,
97  const size_t flags) const;
98 
99  // --- static helper function ---
100 
111  DSRXMLCursor cursor,
112  OFString &nameValue);
113 
114 
115  protected:
116 
121  virtual OFCondition readContentItem(DcmItem &dataset);
122 
127  virtual OFCondition writeContentItem(DcmItem &dataset) const;
128 
134  virtual OFCondition readXMLContentItem(const DSRXMLDocument &doc,
135  DSRXMLCursor cursor);
136 
146  virtual OFCondition renderHTMLContentItem(STD_NAMESPACE ostream &docStream,
147  STD_NAMESPACE ostream &annexStream,
148  const size_t nestingLevel,
149  size_t &annexNumber,
150  const size_t flags) const;
151 
152 
153  private:
154 
155  // --- declaration of default/copy constructor and assignment operator
156 
159  DSRPNameTreeNode &operator=(const DSRPNameTreeNode &);
160 };
161 
162 
163 #endif
164 
165 
166 /*
167  * CVS/RCS Log:
168  * $Log: dsrpnmtn.h,v $
169  * Revision 1.16 2010-10-14 13:16:32 joergr
170  * Updated copyright header. Added reference to COPYRIGHT file.
171  *
172  * Revision 1.15 2009-10-13 14:57:50 uli
173  * Switched to logging mechanism provided by the "new" oflog module.
174  *
175  * Revision 1.14 2007-11-15 16:33:30 joergr
176  * Added support for output in XHTML 1.1 format.
177  *
178  * Revision 1.13 2006/08/15 16:40:03 meichel
179  * Updated the code in module dcmsr to correctly compile when
180  * all standard C++ classes remain in namespace std.
181  *
182  * Revision 1.12 2006/05/11 09:18:21 joergr
183  * Moved containsExtendedCharacters() from dcmsr to dcmdata module.
184  *
185  * Revision 1.11 2005/12/08 16:05:12 meichel
186  * Changed include path schema for all DCMTK header files
187  *
188  * Revision 1.10 2004/11/22 16:39:09 meichel
189  * Added method that checks if the SR document contains non-ASCII characters
190  * in any of the strings affected by SpecificCharacterSet.
191  *
192  * Revision 1.9 2003/09/15 14:18:54 joergr
193  * Introduced new class to facilitate checking of SR IOD relationship content
194  * constraints. Replaced old implementation distributed over numerous classes.
195  *
196  * Revision 1.8 2003/08/07 12:44:26 joergr
197  * Added readXML functionality. Added support for Chest CAD SR.
198  *
199  * Revision 1.7 2001/11/09 16:10:51 joergr
200  * Added preliminary support for Mammography CAD SR.
201  *
202  * Revision 1.6 2001/09/26 13:04:10 meichel
203  * Adapted dcmsr to class OFCondition
204  *
205  * Revision 1.5 2001/06/01 15:51:02 meichel
206  * Updated copyright header
207  *
208  * Revision 1.4 2000/11/07 18:14:30 joergr
209  * Enhanced support for by-reference relationships.
210  *
211  * Revision 1.3 2000/11/01 16:23:23 joergr
212  * Added support for conversion to XML.
213  *
214  * Revision 1.2 2000/10/23 15:12:12 joergr
215  * Added clear() method.
216  * Added/updated doc++ comments.
217  *
218  * Revision 1.1 2000/10/13 07:49:30 joergr
219  * Added new module 'dcmsr' providing access to DICOM structured reporting
220  * documents (supplement 23). Doc++ documentation not yet completed.
221  *
222  *
223  */


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