dsrcomtn.h

00001 /*
00002  *
00003  *  Copyright (C) 2000-2005, OFFIS
00004  *
00005  *  This software and supporting documentation were developed by
00006  *
00007  *    Kuratorium OFFIS e.V.
00008  *    Healthcare Information and Communication Systems
00009  *    Escherweg 2
00010  *    D-26121 Oldenburg, Germany
00011  *
00012  *  THIS SOFTWARE IS MADE AVAILABLE,  AS IS,  AND OFFIS MAKES NO  WARRANTY
00013  *  REGARDING  THE  SOFTWARE,  ITS  PERFORMANCE,  ITS  MERCHANTABILITY  OR
00014  *  FITNESS FOR ANY PARTICULAR USE, FREEDOM FROM ANY COMPUTER DISEASES  OR
00015  *  ITS CONFORMITY TO ANY SPECIFICATION. THE ENTIRE RISK AS TO QUALITY AND
00016  *  PERFORMANCE OF THE SOFTWARE IS WITH THE USER.
00017  *
00018  *  Module: dcmsr
00019  *
00020  *  Author: Joerg Riesmeier
00021  *
00022  *  Purpose:
00023  *    classes: DSRCompositeTreeNode
00024  *
00025  *  Last Update:      $Author: meichel $
00026  *  Update Date:      $Date: 2005/12/08 16:04:54 $
00027  *  CVS/RCS Revision: $Revision: 1.11 $
00028  *  Status:           $State: Exp $
00029  *
00030  *  CVS/RCS Log at end of file
00031  *
00032  */
00033 
00034 
00035 #ifndef DSRCOMTN_H
00036 #define DSRCOMTN_H
00037 
00038 #include "dcmtk/config/osconfig.h"   /* make sure OS specific configuration is included first */
00039 
00040 #include "dcmtk/dcmsr/dsrdoctr.h"
00041 #include "dcmtk/dcmsr/dsrcomvl.h"
00042 
00043 
00044 /*---------------------*
00045  *  class declaration  *
00046  *---------------------*/
00047 
00050 class DSRCompositeTreeNode
00051   : public DSRDocumentTreeNode,
00052     public DSRCompositeReferenceValue
00053 {
00054 
00055   public:
00056 
00061     DSRCompositeTreeNode(const E_RelationshipType relationshipType);
00062 
00065     virtual ~DSRCompositeTreeNode();
00066 
00070     virtual void clear();
00071 
00076     virtual OFBool isValid() const;
00077 
00084     virtual OFCondition print(ostream &stream,
00085                               const size_t flags) const;
00086 
00093     virtual OFCondition writeXML(ostream &stream,
00094                                  const size_t flags,
00095                                  OFConsole *logStream) const;
00096 
00097 
00098   protected:
00099 
00105     virtual OFCondition readContentItem(DcmItem &dataset,
00106                                         OFConsole *logStream);
00107 
00113     virtual OFCondition writeContentItem(DcmItem &dataset,
00114                                          OFConsole *logStream) const;
00115 
00121     virtual OFCondition readXMLContentItem(const DSRXMLDocument &doc,
00122                                            DSRXMLCursor cursor);
00123 
00134     virtual OFCondition renderHTMLContentItem(ostream &docStream,
00135                                               ostream &annexStream,
00136                                               const size_t nestingLevel,
00137                                               size_t &annexNumber,
00138                                               const size_t flags,
00139                                               OFConsole *logStream) const;
00140 
00141 
00142   private:
00143 
00144  // --- declaration of default/copy constructor and assignment operator
00145 
00146     DSRCompositeTreeNode();
00147     DSRCompositeTreeNode(const DSRCompositeTreeNode &);
00148     DSRCompositeTreeNode &operator=(const DSRCompositeTreeNode &);
00149 };
00150 
00151 
00152 #endif
00153 
00154 
00155 /*
00156  *  CVS/RCS Log:
00157  *  $Log: dsrcomtn.h,v $
00158  *  Revision 1.11  2005/12/08 16:04:54  meichel
00159  *  Changed include path schema for all DCMTK header files
00160  *
00161  *  Revision 1.10  2003/09/15 14:18:54  joergr
00162  *  Introduced new class to facilitate checking of SR IOD relationship content
00163  *  constraints. Replaced old implementation distributed over numerous classes.
00164  *
00165  *  Revision 1.9  2003/08/07 12:22:14  joergr
00166  *  Added readXML functionality.
00167  *  Added support for Chest CAD SR.
00168  *  Updated documentation to get rid of doxygen warnings.
00169  *
00170  *  Revision 1.8  2001/11/09 16:10:46  joergr
00171  *  Added preliminary support for Mammography CAD SR.
00172  *
00173  *  Revision 1.7  2001/09/26 13:04:05  meichel
00174  *  Adapted dcmsr to class OFCondition
00175  *
00176  *  Revision 1.6  2001/06/01 15:50:59  meichel
00177  *  Updated copyright header
00178  *
00179  *  Revision 1.5  2000/11/07 18:14:27  joergr
00180  *  Enhanced support for by-reference relationships.
00181  *
00182  *  Revision 1.4  2000/11/01 16:13:33  joergr
00183  *  Added support for conversion to XML.
00184  *
00185  *  Revision 1.3  2000/10/23 15:08:59  joergr
00186  *  Added/updated doc++ comments.
00187  *
00188  *  Revision 1.2  2000/10/20 10:15:42  joergr
00189  *  Renamed class DSRReferenceValue to DSRCompositeReferenceValue.
00190  *
00191  *  Revision 1.1  2000/10/13 07:49:24  joergr
00192  *  Added new module 'dcmsr' providing access to DICOM structured reporting
00193  *  documents (supplement 23).  Doc++ documentation not yet completed.
00194  *
00195  *
00196  */


Generated on 20 Dec 2005 for OFFIS DCMTK Version 3.5.4 by Doxygen 1.4.5