]> Creatis software - gdcm.git/blobdiff - src/gdcmDicomDirImage.cxx
ENH: First pass at simplifying the JPEG stuff.
[gdcm.git] / src / gdcmDicomDirImage.cxx
index 7cbb2c0a680ff228e0499fee4eb6c38b36d18428..e1f201ff4a3be39f96a5d105cf9ae8736ddf9d04 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirImage.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/10/12 04:35:44 $
-  Version:   $Revision: 1.12 $
+  Date:      $Date: 2005/01/16 04:50:41 $
+  Version:   $Revision: 1.16 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
 
 namespace gdcm 
 {
-
 //-----------------------------------------------------------------------------
 // Constructor / Destructor
-
-/**
- * \ingroup DicomDirImage
- * \brief  Constructor 
- * @param  s  SQ Item holding the elements
- * @param ptagHT pointer to the HTable (DicomDirObject needs it 
- *               to build the DocEntries)
- */
-DicomDirImage::DicomDirImage(SQItem *s, TagDocEntryHT *ptagHT):
-   DicomDirObject(ptagHT)
-{
-   docEntries = s->GetDocEntries();
-}
-
 /**
  * \ingroup DicomDirImage
  * \brief  Constructor 
- * @param ptagHT pointer to the HTable (DicomDirObject needs it 
- *               to build the DocEntries)
  */
-DicomDirImage::DicomDirImage(TagDocEntryHT *ptagHT):
-   DicomDirObject(ptagHT)
+DicomDirImage::DicomDirImage():
+   DicomDirObject()
 {
 }
 /**
@@ -63,10 +46,12 @@ DicomDirImage::~DicomDirImage()
  * \brief   Prints the Object
  * @return
  */ 
-void DicomDirImage::Print(std::ostream &os)
+void DicomDirImage::Print(std::ostream &os, std::string const & )
 {
    os << "IMAGE : ";
-   for(ListDocEntry::iterator i=docEntries.begin();i!=docEntries.end();++i)
+   for(ListDocEntry::iterator i = DocEntries.begin();
+                              i!= DocEntries.end();
+                              ++i)
    {
       if( (*i)->GetGroup() == 0x0004 && (*i)->GetElement() == 0x1500 )
       {