dcmpstat/include/dcmtk/dcmpstat/dvpsrsl.h

00001 /*
00002  *
00003  *  Copyright (C) 1998-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: dcmpstat
00015  *
00016  *  Author: Marco Eichelberg
00017  *
00018  *  Purpose:
00019  *    classes: DVPSReferencedSeries_PList
00020  *
00021  *  Last Update:      $Author: joergr $
00022  *  Update Date:      $Date: 2010-10-14 13:16:36 $
00023  *  CVS/RCS Revision: $Revision: 1.14 $
00024  *  Status:           $State: Exp $
00025  *
00026  *  CVS/RCS Log at end of file
00027  *
00028  */
00029 
00030 #ifndef DVPSRSL_H
00031 #define DVPSRSL_H
00032 
00033 #include "dcmtk/config/osconfig.h"    /* make sure OS specific configuration is included first */
00034 #include "dcmtk/dcmdata/dcitem.h"
00035 
00036 
00037 class DVPSReferencedSeries;
00038 class DVPSReferencedImage;
00039 
00045 class DVPSReferencedSeries_PList
00046 {
00047 public:
00049   DVPSReferencedSeries_PList();
00050 
00052   DVPSReferencedSeries_PList(const DVPSReferencedSeries_PList& copy);
00053 
00058   DVPSReferencedSeries_PList *clone() { return new DVPSReferencedSeries_PList(*this); }
00059 
00061   virtual ~DVPSReferencedSeries_PList();
00062 
00071   OFCondition read(DcmItem &dset);
00072 
00079   OFCondition write(DcmItem &dset);
00080 
00085   void clear();
00086 
00091   OFBool isValid();
00092 
00097   OFBool checkSOPClass(const char *uid);
00098 
00105   DVPSReferencedSeries *findSeriesReference(const char *seriesUID);
00106 
00114   DVPSReferencedImage *findImageReference(const char *seriesUID, const char *instanceUID);
00115 
00121   void removeSeriesReference(const char *seriesUID);
00122 
00129   void removeImageReference(const char *seriesUID, const char *instanceUID);
00130 
00147   OFCondition addImageReference(
00148     const char *seriesUID,
00149     const char *sopclassUID,
00150     const char *instanceUID,
00151     const char *frames=NULL,
00152     const char *aetitle=NULL,
00153     const char *filesetID=NULL,
00154     const char *filesetUID=NULL);
00155 
00159   size_t numberOfImageReferences();
00160 
00172   OFCondition getImageReference(
00173     size_t idx,
00174     OFString& seriesUID,
00175     OFString& sopclassUID,
00176     OFString& instanceUID,
00177     OFString& frames,
00178     OFString& aetitle,
00179     OFString& filesetID,
00180     OFString& filesetUID);
00181 
00182 private:
00183 
00185   DVPSReferencedSeries_PList& operator=(const DVPSReferencedSeries_PList&);
00186 
00189   OFList<DVPSReferencedSeries *> list_;
00190 };
00191 
00192 #endif
00193 
00194 /*
00195  *  $Log: dvpsrsl.h,v $
00196  *  Revision 1.14  2010-10-14 13:16:36  joergr
00197  *  Updated copyright header. Added reference to COPYRIGHT file.
00198  *
00199  *  Revision 1.13  2010-10-07 14:31:36  joergr
00200  *  Removed leading underscore characters from preprocessor symbols (reserved).
00201  *
00202  *  Revision 1.12  2009-11-24 14:12:57  uli
00203  *  Switched to logging mechanism provided by the "new" oflog module.
00204  *
00205  *  Revision 1.11  2009-09-30 10:42:38  uli
00206  *  Make dcmpstat's include headers self-sufficient by including all
00207  *  needed headers directly and stop using dctk.h
00208  *
00209  *  Revision 1.10  2005-12-08 16:04:02  meichel
00210  *  Changed include path schema for all DCMTK header files
00211  *
00212  *  Revision 1.9  2003/06/04 10:18:06  meichel
00213  *  Replaced private inheritance from template with aggregation
00214  *
00215  *  Revision 1.8  2001/09/26 15:36:15  meichel
00216  *  Adapted dcmpstat to class OFCondition
00217  *
00218  *  Revision 1.7  2001/06/01 15:50:21  meichel
00219  *  Updated copyright header
00220  *
00221  *  Revision 1.6  2000/06/02 16:00:51  meichel
00222  *  Adapted all dcmpstat classes to use OFConsole for log and error output
00223  *
00224  *  Revision 1.5  2000/03/08 16:28:56  meichel
00225  *  Updated copyright header.
00226  *
00227  *  Revision 1.4  1999/07/22 16:39:11  meichel
00228  *  Adapted dcmpstat data structures and API to supplement 33 letter ballot text.
00229  *
00230  *  Revision 1.3  1999/01/15 17:33:04  meichel
00231  *  added methods to DVPresentationState allowing to access the image
00232  *    references in the presentation state.  Also added methods allowing to
00233  *    get the width and height of the attached image.
00234  *
00235  *  Revision 1.2  1998/12/14 16:10:34  meichel
00236  *  Implemented Presentation State interface for graphic layers,
00237  *    text and graphic annotations, presentation LUTs.
00238  *
00239  *  Revision 1.1  1998/11/27 14:50:33  meichel
00240  *  Initial Release.
00241  *
00242  *
00243  */


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