dcmsr/include/dcmtk/dcmsr/dsrpnmtn.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: DSRPNameTreeNode
00020  *
00021  *  Last Update:      $Author: joergr $
00022  *  Update Date:      $Date: 2010-10-14 13:16:32 $
00023  *  CVS/RCS Revision: $Revision: 1.16 $
00024  *  Status:           $State: Exp $
00025  *
00026  *  CVS/RCS Log at end of file
00027  *
00028  */
00029 
00030 
00031 #ifndef DSRPNMTN_H
00032 #define DSRPNMTN_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 DSRPNameTreeNode
00047   : public DSRDocumentTreeNode,
00048     public DSRStringValue
00049 {
00050 
00051   public:
00052 
00057     DSRPNameTreeNode(const E_RelationshipType relationshipType);
00058 
00064     DSRPNameTreeNode(const E_RelationshipType relationshipType,
00065                      const OFString &stringValue);
00066 
00069     virtual ~DSRPNameTreeNode();
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     // --- static helper function ---
00100 
00110     static OFString &getValueFromXMLNodeContent(const DSRXMLDocument &doc,
00111                                                 DSRXMLCursor cursor,
00112                                                 OFString &nameValue);
00113 
00114 
00115   protected:
00116 
00121     virtual OFCondition readContentItem(DcmItem &dataset);
00122 
00127     virtual OFCondition writeContentItem(DcmItem &dataset) const;
00128 
00134     virtual OFCondition readXMLContentItem(const DSRXMLDocument &doc,
00135                                            DSRXMLCursor cursor);
00136 
00146     virtual OFCondition renderHTMLContentItem(STD_NAMESPACE ostream &docStream,
00147                                               STD_NAMESPACE ostream &annexStream,
00148                                               const size_t nestingLevel,
00149                                               size_t &annexNumber,
00150                                               const size_t flags) const;
00151 
00152 
00153   private:
00154 
00155  // --- declaration of default/copy constructor and assignment operator
00156 
00157     DSRPNameTreeNode();
00158     DSRPNameTreeNode(const DSRPNameTreeNode &);
00159     DSRPNameTreeNode &operator=(const DSRPNameTreeNode &);
00160 };
00161 
00162 
00163 #endif
00164 
00165 
00166 /*
00167  *  CVS/RCS Log:
00168  *  $Log: dsrpnmtn.h,v $
00169  *  Revision 1.16  2010-10-14 13:16:32  joergr
00170  *  Updated copyright header. Added reference to COPYRIGHT file.
00171  *
00172  *  Revision 1.15  2009-10-13 14:57:50  uli
00173  *  Switched to logging mechanism provided by the "new" oflog module.
00174  *
00175  *  Revision 1.14  2007-11-15 16:33:30  joergr
00176  *  Added support for output in XHTML 1.1 format.
00177  *
00178  *  Revision 1.13  2006/08/15 16:40:03  meichel
00179  *  Updated the code in module dcmsr to correctly compile when
00180  *    all standard C++ classes remain in namespace std.
00181  *
00182  *  Revision 1.12  2006/05/11 09:18:21  joergr
00183  *  Moved containsExtendedCharacters() from dcmsr to dcmdata module.
00184  *
00185  *  Revision 1.11  2005/12/08 16:05:12  meichel
00186  *  Changed include path schema for all DCMTK header files
00187  *
00188  *  Revision 1.10  2004/11/22 16:39:09  meichel
00189  *  Added method that checks if the SR document contains non-ASCII characters
00190  *    in any of the strings affected by SpecificCharacterSet.
00191  *
00192  *  Revision 1.9  2003/09/15 14:18:54  joergr
00193  *  Introduced new class to facilitate checking of SR IOD relationship content
00194  *  constraints. Replaced old implementation distributed over numerous classes.
00195  *
00196  *  Revision 1.8  2003/08/07 12:44:26  joergr
00197  *  Added readXML functionality. Added support for Chest CAD SR.
00198  *
00199  *  Revision 1.7  2001/11/09 16:10:51  joergr
00200  *  Added preliminary support for Mammography CAD SR.
00201  *
00202  *  Revision 1.6  2001/09/26 13:04:10  meichel
00203  *  Adapted dcmsr to class OFCondition
00204  *
00205  *  Revision 1.5  2001/06/01 15:51:02  meichel
00206  *  Updated copyright header
00207  *
00208  *  Revision 1.4  2000/11/07 18:14:30  joergr
00209  *  Enhanced support for by-reference relationships.
00210  *
00211  *  Revision 1.3  2000/11/01 16:23:23  joergr
00212  *  Added support for conversion to XML.
00213  *
00214  *  Revision 1.2  2000/10/23 15:12:12  joergr
00215  *  Added clear() method.
00216  *  Added/updated doc++ comments.
00217  *
00218  *  Revision 1.1  2000/10/13 07:49:30  joergr
00219  *  Added new module 'dcmsr' providing access to DICOM structured reporting
00220  *  documents (supplement 23).  Doc++ documentation not yet completed.
00221  *
00222  *
00223  */


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