OFFIS DCMTK  Version 3.6.0
dsrdattn.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: DSRDateTreeNode
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 DSRDATTN_H
32 #define DSRDATTN_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  DSRDateTreeNode(const E_RelationshipType relationshipType);
58 
64  DSRDateTreeNode(const E_RelationshipType relationshipType,
65  const OFString &stringValue);
66 
69  virtual ~DSRDateTreeNode();
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 &dateValue,
113  const OFBool clearString = OFTrue);
114 
115 
116  protected:
117 
122  virtual OFCondition readContentItem(DcmItem &dataset);
123 
128  virtual OFCondition writeContentItem(DcmItem &dataset) const;
129 
135  virtual OFCondition readXMLContentItem(const DSRXMLDocument &doc,
136  DSRXMLCursor cursor);
137 
147  virtual OFCondition renderHTMLContentItem(STD_NAMESPACE ostream &docStream,
148  STD_NAMESPACE ostream &annexStream,
149  const size_t nestingLevel,
150  size_t &annexNumber,
151  const size_t flags) const;
152 
153 
154  private:
155 
156  // --- declaration of default/copy constructor and assignment operator
157 
158  DSRDateTreeNode();
160  DSRDateTreeNode &operator=(const DSRDateTreeNode &);
161 };
162 
163 
164 #endif
165 
166 
167 /*
168  * CVS/RCS Log:
169  * $Log: dsrdattn.h,v $
170  * Revision 1.15 2010-10-14 13:16:32 joergr
171  * Updated copyright header. Added reference to COPYRIGHT file.
172  *
173  * Revision 1.14 2009-10-13 14:57:50 uli
174  * Switched to logging mechanism provided by the "new" oflog module.
175  *
176  * Revision 1.13 2007-11-15 16:33:30 joergr
177  * Added support for output in XHTML 1.1 format.
178  *
179  * Revision 1.12 2006/08/15 16:40:03 meichel
180  * Updated the code in module dcmsr to correctly compile when
181  * all standard C++ classes remain in namespace std.
182  *
183  * Revision 1.11 2005/12/08 16:04:58 meichel
184  * Changed include path schema for all DCMTK header files
185  *
186  * Revision 1.10 2004/01/16 09:58:21 joergr
187  * Adapted XML output format of Date, Time and Datetime to XML Schema (ISO)
188  * requirements.
189  *
190  * Revision 1.9 2003/09/15 14:18:54 joergr
191  * Introduced new class to facilitate checking of SR IOD relationship content
192  * constraints. Replaced old implementation distributed over numerous classes.
193  *
194  * Revision 1.8 2003/08/07 12:23:44 joergr
195  * Added readXML functionality.
196  *
197  * Revision 1.7 2001/11/09 16:10:47 joergr
198  * Added preliminary support for Mammography CAD SR.
199  *
200  * Revision 1.6 2001/09/26 13:04:06 meichel
201  * Adapted dcmsr to class OFCondition
202  *
203  * Revision 1.5 2001/06/01 15:51:00 meichel
204  * Updated copyright header
205  *
206  * Revision 1.4 2000/11/07 18:14:28 joergr
207  * Enhanced support for by-reference relationships.
208  *
209  * Revision 1.3 2000/11/01 16:14:27 joergr
210  * Added support for conversion to XML.
211  *
212  * Revision 1.2 2000/10/23 15:09:55 joergr
213  * Added clear() method.
214  * Added/updated doc++ comments.
215  *
216  * Revision 1.1 2000/10/13 07:49:25 joergr
217  * Added new module 'dcmsr' providing access to DICOM structured reporting
218  * documents (supplement 23). Doc++ documentation not yet completed.
219  *
220  *
221  */


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