dcmsr/include/dcmtk/dcmsr/dsrcontn.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: DSRContainerTreeNode
00020  *
00021  *  Last Update:      $Author: joergr $
00022  *  Update Date:      $Date: 2010-10-14 13:16:32 $
00023  *  CVS/RCS Revision: $Revision: 1.15 $
00024  *  Status:           $State: Exp $
00025  *
00026  *  CVS/RCS Log at end of file
00027  *
00028  */
00029 
00030 
00031 #ifndef DSRCONTN_H
00032 #define DSRCONTN_H
00033 
00034 #include "dcmtk/config/osconfig.h"   /* make sure OS specific configuration is included first */
00035 
00036 #include "dcmtk/dcmsr/dsrdoctr.h"
00037 
00038 
00039 /*---------------------*
00040  *  class declaration  *
00041  *---------------------*/
00042 
00045 class DSRContainerTreeNode
00046   : public DSRDocumentTreeNode
00047 {
00048 
00049   public:
00050 
00057     DSRContainerTreeNode(const E_RelationshipType relationshipType,
00058                          const E_ContinuityOfContent continuityOfContent = COC_Separate);
00059 
00062     virtual ~DSRContainerTreeNode();
00063 
00067     virtual void clear();
00068 
00074     virtual OFBool isValid() const;
00075 
00081     virtual OFBool isShort(const size_t flags) const;
00082 
00090     virtual OFCondition print(STD_NAMESPACE ostream &stream,
00091                               const size_t flags) const;
00092 
00098     virtual OFCondition writeXML(STD_NAMESPACE ostream &stream,
00099                                  const size_t flags) const;
00100 
00114     virtual OFCondition renderHTML(STD_NAMESPACE ostream &docStream,
00115                                    STD_NAMESPACE ostream &annexStream,
00116                                    const size_t nestingLevel,
00117                                    size_t &annexNumber,
00118                                    const size_t flags) const;
00119 
00125     inline E_ContinuityOfContent getContinuityOfContent() const
00126     {
00127         return ContinuityOfContent;
00128     }
00129 
00136     OFCondition setContinuityOfContent(const E_ContinuityOfContent continuityOfContent);
00137 
00138 
00139   protected:
00140 
00145     virtual OFCondition readContentItem(DcmItem &dataset);
00146 
00151     virtual OFCondition writeContentItem(DcmItem &dataset) const;
00152 
00158     virtual OFCondition readXMLContentItem(const DSRXMLDocument &doc,
00159                                            DSRXMLCursor cursor);
00160 
00170     virtual OFCondition renderHTMLContentItem(STD_NAMESPACE ostream &docStream,
00171                                               STD_NAMESPACE ostream &annexStream,
00172                                               const size_t nestingLevel,
00173                                               size_t &annexNumber,
00174                                               const size_t flags) const;
00175 
00176 
00177   private:
00178 
00180     E_ContinuityOfContent ContinuityOfContent;
00181 
00182 
00183  // --- declaration of default/copy constructor and assignment operator
00184 
00185     DSRContainerTreeNode();
00186     DSRContainerTreeNode(const DSRContainerTreeNode &);
00187     DSRContainerTreeNode &operator=(const DSRContainerTreeNode &);
00188 };
00189 
00190 
00191 #endif
00192 
00193 
00194 /*
00195  *  CVS/RCS Log:
00196  *  $Log: dsrcontn.h,v $
00197  *  Revision 1.15  2010-10-14 13:16:32  joergr
00198  *  Updated copyright header. Added reference to COPYRIGHT file.
00199  *
00200  *  Revision 1.14  2009-10-13 14:57:50  uli
00201  *  Switched to logging mechanism provided by the "new" oflog module.
00202  *
00203  *  Revision 1.13  2007-11-15 16:33:30  joergr
00204  *  Added support for output in XHTML 1.1 format.
00205  *
00206  *  Revision 1.12  2006/08/15 16:40:03  meichel
00207  *  Updated the code in module dcmsr to correctly compile when
00208  *    all standard C++ classes remain in namespace std.
00209  *
00210  *  Revision 1.11  2005/12/08 16:04:56  meichel
00211  *  Changed include path schema for all DCMTK header files
00212  *
00213  *  Revision 1.10  2003/09/15 14:18:54  joergr
00214  *  Introduced new class to facilitate checking of SR IOD relationship content
00215  *  constraints. Replaced old implementation distributed over numerous classes.
00216  *
00217  *  Revision 1.9  2003/08/07 12:23:17  joergr
00218  *  Added readXML functionality.
00219  *  Updated documentation to get rid of doxygen warnings.
00220  *
00221  *  Revision 1.8  2001/11/09 16:10:47  joergr
00222  *  Added preliminary support for Mammography CAD SR.
00223  *
00224  *  Revision 1.7  2001/09/26 13:04:05  meichel
00225  *  Adapted dcmsr to class OFCondition
00226  *
00227  *  Revision 1.6  2001/06/01 15:51:00  meichel
00228  *  Updated copyright header
00229  *
00230  *  Revision 1.5  2000/11/07 18:14:28  joergr
00231  *  Enhanced support for by-reference relationships.
00232  *
00233  *  Revision 1.4  2000/11/01 16:14:26  joergr
00234  *  Added support for conversion to XML.
00235  *
00236  *  Revision 1.3  2000/10/23 15:09:27  joergr
00237  *  Added/updated doc++ comments.
00238  *
00239  *  Revision 1.2  2000/10/18 17:01:17  joergr
00240  *  Made some functions inline.
00241  *
00242  *  Revision 1.1  2000/10/13 07:49:24  joergr
00243  *  Added new module 'dcmsr' providing access to DICOM structured reporting
00244  *  documents (supplement 23).  Doc++ documentation not yet completed.
00245  *
00246  *
00247  */


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