Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

dsrtextn.h

00001 /*
00002  *
00003  *  Copyright (C) 2000-2003, 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: DSRTextTreeNode
00024  *
00025  *  Last Update:      $Author: joergr $
00026  *  Update Date:      $Date: 2003/09/15 14:18:54 $
00027  *  CVS/RCS Revision: $Revision: 1.9 $
00028  *  Status:           $State: Exp $
00029  *
00030  *  CVS/RCS Log at end of file
00031  *
00032  */
00033 
00034 
00035 #ifndef DSRTEXTN_H
00036 #define DSRTEXTN_H
00037 
00038 #include "osconfig.h"   /* make sure OS specific configuration is included first */
00039 
00040 #include "dsrdoctn.h"
00041 #include "dsrstrvl.h"
00042 
00043 
00044 /*---------------------*
00045  *  class declaration  *
00046  *---------------------*/
00047 
00050 class DSRTextTreeNode
00051   : public DSRDocumentTreeNode,
00052     public DSRStringValue
00053 {
00054 
00055   public:
00056 
00061     DSRTextTreeNode(const E_RelationshipType relationshipType);
00062 
00068     DSRTextTreeNode(const E_RelationshipType relationshipType,
00069                     const OFString &stringValue);
00070 
00073     virtual ~DSRTextTreeNode();
00074 
00078     virtual void clear();
00079 
00084     virtual OFBool isValid() const;
00085 
00091     virtual OFBool isShort(const size_t flags) const;
00092 
00101     virtual OFCondition print(ostream &stream,
00102                               const size_t flags) const;
00103 
00110     virtual OFCondition writeXML(ostream &stream,
00111                                  const size_t flags,
00112                                  OFConsole *logStream) const;
00113 
00114 
00115   protected:
00116 
00122     virtual OFCondition readContentItem(DcmItem &dataset,
00123                                         OFConsole *logStream);
00124 
00130     virtual OFCondition writeContentItem(DcmItem &dataset,
00131                                          OFConsole *logStream) const;
00132 
00138     virtual OFCondition readXMLContentItem(const DSRXMLDocument &doc,
00139                                            DSRXMLCursor cursor);
00140 
00151     virtual OFCondition renderHTMLContentItem(ostream &docStream,
00152                                               ostream &annexStream,
00153                                               const size_t nestingLevel,
00154                                               size_t &annexNumber,
00155                                               const size_t flags,
00156                                               OFConsole *logStream) const;
00157 
00158 
00159   private:
00160 
00161  // --- declaration of default/copy constructor and assignment operator
00162 
00163     DSRTextTreeNode();
00164     DSRTextTreeNode(const DSRTextTreeNode &);
00165     DSRTextTreeNode &operator=(const DSRTextTreeNode &);
00166 };
00167 
00168 
00169 #endif
00170 
00171 
00172 /*
00173  *  CVS/RCS Log:
00174  *  $Log: dsrtextn.h,v $
00175  *  Revision 1.9  2003/09/15 14:18:54  joergr
00176  *  Introduced new class to facilitate checking of SR IOD relationship content
00177  *  constraints. Replaced old implementation distributed over numerous classes.
00178  *
00179  *  Revision 1.8  2003/08/07 12:53:57  joergr
00180  *  Added readXML functionality. Added support for Chest CAD SR.
00181  *
00182  *  Revision 1.7  2001/11/09 16:10:53  joergr
00183  *  Added preliminary support for Mammography CAD SR.
00184  *
00185  *  Revision 1.6  2001/09/26 13:04:13  meichel
00186  *  Adapted dcmsr to class OFCondition
00187  *
00188  *  Revision 1.5  2001/06/01 15:51:05  meichel
00189  *  Updated copyright header
00190  *
00191  *  Revision 1.4  2000/11/07 18:14:31  joergr
00192  *  Enhanced support for by-reference relationships.
00193  *
00194  *  Revision 1.3  2000/11/01 16:23:27  joergr
00195  *  Added support for conversion to XML.
00196  *
00197  *  Revision 1.2  2000/10/23 15:14:13  joergr
00198  *  Added clear() method.
00199  *  Added/updated doc++ comments.
00200  *
00201  *  Revision 1.1  2000/10/13 07:49:33  joergr
00202  *  Added new module 'dcmsr' providing access to DICOM structured reporting
00203  *  documents (supplement 23).  Doc++ documentation not yet completed.
00204  *
00205  *
00206  */


Generated on 8 Dec 2004 for OFFIS DCMTK Version 3.5.3 by Doxygen 1.3.9.1