OFFIS DCMTK  Version 3.6.0
dsrreftn.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: DSRByReferenceTreeNode
20  *
21  * Last Update: $Author: joergr $
22  * Update Date: $Date: 2010-10-14 13:16:32 $
23  * CVS/RCS Revision: $Revision: 1.14 $
24  * Status: $State: Exp $
25  *
26  * CVS/RCS Log at end of file
27  *
28  */
29 
30 
31 #ifndef DSRREFTN_H
32 #define DSRREFTN_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/dsrdoctn.h"
38 
39 
40 /*---------------------*
41  * class declaration *
42  *---------------------*/
43 
47  : public DSRDocumentTreeNode
48 {
49  // allow access to private member variables
50  friend class DSRDocumentTree;
51 
52  public:
53 
58  DSRByReferenceTreeNode(const E_RelationshipType relationshipType);
59 
65  DSRByReferenceTreeNode(const E_RelationshipType relationshipType,
66  const size_t referencedNodeID);
67 
70  virtual ~DSRByReferenceTreeNode();
71 
75  virtual void clear();
76 
82  virtual OFBool isValid() const;
83 
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 
105  virtual OFCondition setConceptName(const DSRCodedEntryValue &conceptName);
106 
112  virtual OFCondition setObservationDateTime(const OFString &observationDateTime);
113 
120  virtual OFCondition setTemplateIdentification(const OFString &templateIdentifier,
121  const OFString &mappingResource);
122 
126  size_t getReferencedNodeID() const
127  {
128  return ReferencedNodeID;
129  }
130 
131 
132  protected:
133 
138  virtual OFCondition readContentItem(DcmItem &dataset);
139 
144  virtual OFCondition writeContentItem(DcmItem &dataset) const;
145 
151  virtual OFCondition readXMLContentItem(const DSRXMLDocument &doc,
152  DSRXMLCursor cursor);
153 
163  virtual OFCondition renderHTMLContentItem(STD_NAMESPACE ostream &docStream,
164  STD_NAMESPACE ostream &annexStream,
165  const size_t nestingLevel,
166  size_t &annexNumber,
167  const size_t flags) const;
168 
169 
170  private:
171 
178 
179 
180  // --- declaration of default/copy constructor and assignment operator
181 
185 };
186 
187 
188 #endif
189 
190 
191 /*
192  * CVS/RCS Log:
193  * $Log: dsrreftn.h,v $
194  * Revision 1.14 2010-10-14 13:16:32 joergr
195  * Updated copyright header. Added reference to COPYRIGHT file.
196  *
197  * Revision 1.13 2009-10-13 14:57:50 uli
198  * Switched to logging mechanism provided by the "new" oflog module.
199  *
200  * Revision 1.12 2007-11-15 16:33:30 joergr
201  * Added support for output in XHTML 1.1 format.
202  *
203  * Revision 1.11 2006/08/15 16:40:03 meichel
204  * Updated the code in module dcmsr to correctly compile when
205  * all standard C++ classes remain in namespace std.
206  *
207  * Revision 1.10 2005/12/08 16:05:14 meichel
208  * Changed include path schema for all DCMTK header files
209  *
210  * Revision 1.9 2003/10/30 17:53:02 joergr
211  * Added full support for the ContentTemplateSequence (read/write, get/set
212  * template identification). Template constraints are not checked yet.
213  *
214  * Revision 1.8 2003/09/15 14:18:54 joergr
215  * Introduced new class to facilitate checking of SR IOD relationship content
216  * constraints. Replaced old implementation distributed over numerous classes.
217  *
218  * Revision 1.7 2003/08/07 12:45:14 joergr
219  * Added readXML functionality.
220  *
221  * Revision 1.6 2001/09/28 14:07:02 joergr
222  * Added term "class" to friend declaration to keep gcc 3.0 quiet.
223  *
224  * Revision 1.5 2001/09/26 13:04:10 meichel
225  * Adapted dcmsr to class OFCondition
226  *
227  * Revision 1.4 2001/06/01 15:51:03 meichel
228  * Updated copyright header
229  *
230  * Revision 1.3 2000/11/07 18:14:30 joergr
231  * Enhanced support for by-reference relationships.
232  *
233  * Revision 1.2 2000/11/01 16:23:23 joergr
234  * Added support for conversion to XML.
235  *
236  * Revision 1.1 2000/10/26 14:22:42 joergr
237  * Added support for "Comprehensive SR".
238  *
239  *
240  *
241  */


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