dsrnumtn.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: DSRNumTreeNode
00024  *
00025  *  Last Update:      $Author: meichel $
00026  *  Update Date:      $Date: 2005/12/08 16:05:10 $
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 DSRNUMTN_H
00036 #define DSRNUMTN_H
00037 
00038 #include "dcmtk/config/osconfig.h"   /* make sure OS specific configuration is included first */
00039 
00040 #include "dcmtk/dcmsr/dsrdoctn.h"
00041 #include "dcmtk/dcmsr/dsrnumvl.h"
00042 
00043 
00044 /*---------------------*
00045  *  class declaration  *
00046  *---------------------*/
00047 
00050 class DSRNumTreeNode
00051   : public DSRDocumentTreeNode,
00052     public DSRNumericMeasurementValue
00053 {
00054 
00055   public:
00056 
00061     DSRNumTreeNode(const E_RelationshipType relationshipType);
00062 
00065     virtual ~DSRNumTreeNode();
00066 
00070     virtual void clear();
00071 
00076     virtual OFBool isValid() const;
00077 
00085     virtual OFCondition print(ostream &stream,
00086                               const size_t flags) const;
00087 
00094     virtual OFCondition writeXML(ostream &stream,
00095                                  const size_t flags,
00096                                  OFConsole *logStream) const;
00097 
00102     virtual OFBool containsExtendedCharacters() const;
00103 
00104   protected:
00105 
00111     virtual OFCondition readContentItem(DcmItem &dataset,
00112                                         OFConsole *logStream);
00113 
00119     virtual OFCondition writeContentItem(DcmItem &dataset,
00120                                          OFConsole *logStream) const;
00121 
00127     virtual OFCondition readXMLContentItem(const DSRXMLDocument &doc,
00128                                            DSRXMLCursor cursor);
00129 
00140     virtual OFCondition renderHTMLContentItem(ostream &docStream,
00141                                               ostream &annexStream,
00142                                               const size_t nestingLevel,
00143                                               size_t &annexNumber,
00144                                               const size_t flags,
00145                                               OFConsole *logStream) const;
00146 
00147 
00148   private:
00149 
00150  // --- declaration of default/copy constructor and assignment operator
00151 
00152     DSRNumTreeNode();
00153     DSRNumTreeNode(const DSRNumTreeNode &);
00154     DSRNumTreeNode &operator=(const DSRNumTreeNode &);
00155 };
00156 
00157 
00158 #endif
00159 
00160 
00161 /*
00162  *  CVS/RCS Log:
00163  *  $Log: dsrnumtn.h,v $
00164  *  Revision 1.11  2005/12/08 16:05:10  meichel
00165  *  Changed include path schema for all DCMTK header files
00166  *
00167  *  Revision 1.10  2004/11/22 16:39:09  meichel
00168  *  Added method that checks if the SR document contains non-ASCII characters
00169  *    in any of the strings affected by SpecificCharacterSet.
00170  *
00171  *  Revision 1.9  2003/09/15 14:18:54  joergr
00172  *  Introduced new class to facilitate checking of SR IOD relationship content
00173  *  constraints. Replaced old implementation distributed over numerous classes.
00174  *
00175  *  Revision 1.8  2003/08/07 12:43:16  joergr
00176  *  Added readXML functionality. Added support for Chest CAD SR.
00177  *
00178  *  Revision 1.7  2001/11/09 16:10:51  joergr
00179  *  Added preliminary support for Mammography CAD SR.
00180  *
00181  *  Revision 1.6  2001/09/26 13:04:09  meichel
00182  *  Adapted dcmsr to class OFCondition
00183  *
00184  *  Revision 1.5  2001/06/01 15:51:02  meichel
00185  *  Updated copyright header
00186  *
00187  *  Revision 1.4  2000/11/07 18:14:29  joergr
00188  *  Enhanced support for by-reference relationships.
00189  *
00190  *  Revision 1.3  2000/11/01 16:23:22  joergr
00191  *  Added support for conversion to XML.
00192  *
00193  *  Revision 1.2  2000/10/23 15:12:12  joergr
00194  *  Added clear() method.
00195  *  Added/updated doc++ comments.
00196  *
00197  *  Revision 1.1  2000/10/13 07:49:29  joergr
00198  *  Added new module 'dcmsr' providing access to DICOM structured reporting
00199  *  documents (supplement 23).  Doc++ documentation not yet completed.
00200  *
00201  *
00202  */


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