dcmsr/include/dcmtk/dcmsr/dsruidtn.h

00001 /*
00002  *
00003  *  Copyright (C) 2000-2010, OFFIS e.V.
00004  *  All rights reserved.  See COPYRIGHT file for details.
00005  *
00006  *  This software and supporting documentation were developed by
00007  *
00008  *    OFFIS e.V.
00009  *    R&D Division Health
00010  *    Escherweg 2
00011  *    D-26121 Oldenburg, Germany
00012  *
00013  *
00014  *  Module: dcmsr
00015  *
00016  *  Author: Joerg Riesmeier
00017  *
00018  *  Purpose:
00019  *    classes: DSRUIDRefTreeNode
00020  *
00021  *  Last Update:      $Author: joergr $
00022  *  Update Date:      $Date: 2010-10-14 13:16:33 $
00023  *  CVS/RCS Revision: $Revision: 1.14 $
00024  *  Status:           $State: Exp $
00025  *
00026  *  CVS/RCS Log at end of file
00027  *
00028  */
00029 
00030 
00031 #ifndef DSRUIDTN_H
00032 #define DSRUIDTN_H
00033 
00034 #include "dcmtk/config/osconfig.h"   /* make sure OS specific configuration is included first */
00035 
00036 #include "dcmtk/dcmsr/dsrdoctn.h"
00037 #include "dcmtk/dcmsr/dsrstrvl.h"
00038 
00039 
00040 /*---------------------*
00041  *  class declaration  *
00042  *---------------------*/
00043 
00046 class DSRUIDRefTreeNode
00047   : public DSRDocumentTreeNode,
00048     public DSRStringValue
00049 {
00050 
00051   public:
00052 
00057     DSRUIDRefTreeNode(const E_RelationshipType relationshipType);
00058 
00064     DSRUIDRefTreeNode(const E_RelationshipType relationshipType,
00065                       const OFString &stringValue);
00066 
00069     virtual ~DSRUIDRefTreeNode();
00070 
00074     virtual void clear();
00075 
00080     virtual OFBool isValid() const;
00081 
00088     virtual OFCondition print(STD_NAMESPACE ostream &stream,
00089                               const size_t flags) const;
00090 
00096     virtual OFCondition writeXML(STD_NAMESPACE ostream &stream,
00097                                  const size_t flags) const;
00098 
00099 
00100   protected:
00101 
00106     virtual OFCondition readContentItem(DcmItem &dataset);
00107 
00112     virtual OFCondition writeContentItem(DcmItem &dataset) const;
00113 
00119     virtual OFCondition readXMLContentItem(const DSRXMLDocument &doc,
00120                                            DSRXMLCursor cursor);
00121 
00131     virtual OFCondition renderHTMLContentItem(STD_NAMESPACE ostream &docStream,
00132                                               STD_NAMESPACE ostream &annexStream,
00133                                               const size_t nestingLevel,
00134                                               size_t &annexNumber,
00135                                               const size_t flags) const;
00136 
00137 
00138   private:
00139 
00140  // --- declaration of default/copy constructor and assignment operator
00141 
00142     DSRUIDRefTreeNode();
00143     DSRUIDRefTreeNode(const DSRUIDRefTreeNode &);
00144     DSRUIDRefTreeNode &operator=(const DSRUIDRefTreeNode &);
00145 };
00146 
00147 
00148 #endif
00149 
00150 
00151 /*
00152  *  CVS/RCS Log:
00153  *  $Log: dsruidtn.h,v $
00154  *  Revision 1.14  2010-10-14 13:16:33  joergr
00155  *  Updated copyright header. Added reference to COPYRIGHT file.
00156  *
00157  *  Revision 1.13  2009-10-13 14:57:50  uli
00158  *  Switched to logging mechanism provided by the "new" oflog module.
00159  *
00160  *  Revision 1.12  2007-11-15 16:33:30  joergr
00161  *  Added support for output in XHTML 1.1 format.
00162  *
00163  *  Revision 1.11  2006/08/15 16:40:03  meichel
00164  *  Updated the code in module dcmsr to correctly compile when
00165  *    all standard C++ classes remain in namespace std.
00166  *
00167  *  Revision 1.10  2005/12/08 16:05:31  meichel
00168  *  Changed include path schema for all DCMTK header files
00169  *
00170  *  Revision 1.9  2003/09/15 14:18:54  joergr
00171  *  Introduced new class to facilitate checking of SR IOD relationship content
00172  *  constraints. Replaced old implementation distributed over numerous classes.
00173  *
00174  *  Revision 1.8  2003/08/07 13:06:06  joergr
00175  *  Added readXML functionality. Added support for Chest CAD SR.
00176  *
00177  *  Revision 1.7  2001/11/09 16:10:55  joergr
00178  *  Added preliminary support for Mammography CAD SR.
00179  *
00180  *  Revision 1.6  2001/09/26 13:04:14  meichel
00181  *  Adapted dcmsr to class OFCondition
00182  *
00183  *  Revision 1.5  2001/06/01 15:51:06  meichel
00184  *  Updated copyright header
00185  *
00186  *  Revision 1.4  2000/11/07 18:14:32  joergr
00187  *  Enhanced support for by-reference relationships.
00188  *
00189  *  Revision 1.3  2000/11/01 16:23:28  joergr
00190  *  Added support for conversion to XML.
00191  *
00192  *  Revision 1.2  2000/10/23 15:14:13  joergr
00193  *  Added clear() method.
00194  *  Added/updated doc++ comments.
00195  *
00196  *  Revision 1.1  2000/10/13 07:49:36  joergr
00197  *  Added new module 'dcmsr' providing access to DICOM structured reporting
00198  *  documents (supplement 23).  Doc++ documentation not yet completed.
00199  *
00200  *
00201  */


Generated on 6 Jan 2011 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.5.1