X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDir.cxx;h=77ba8889623d6ff5ba6e1e7d8dcf4b2340af7aca;hb=1fe405b2347a5f78d5ecc67d2d81f53bd9c7541d;hp=01fb17ce6fa768436f8cd2f2ba75037f424f6459;hpb=48266ecf995a124f3d76edb1826ff9e858b5ee40;p=gdcm.git diff --git a/src/gdcmDicomDir.cxx b/src/gdcmDicomDir.cxx index 01fb17ce..77ba8889 100644 --- a/src/gdcmDicomDir.cxx +++ b/src/gdcmDicomDir.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDicomDir.cxx,v $ Language: C++ - Date: $Date: 2005/01/25 11:11:58 $ - Version: $Revision: 1.117 $ + Date: $Date: 2005/01/26 10:29:17 $ + Version: $Revision: 1.120 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -331,11 +331,10 @@ DicomDirPatient *DicomDir::GetFirstPatient() DicomDirPatient *DicomDir::GetNextPatient() { gdcmAssertMacro (ItPatient != Patients.end()); - { - ++ItPatient; - if ( ItPatient != Patients.end() ) - return *ItPatient; - } + + ++ItPatient; + if ( ItPatient != Patients.end() ) + return *ItPatient; return NULL; } @@ -462,18 +461,14 @@ void DicomDir::CreateDicomDirChainedList(std::string const & path) /** * \brief adds *the* Meta to a partially created DICOMDIR - */ - + */ DicomDirMeta *DicomDir::NewMeta() { if( MetaElems ) delete MetaElems; - // friend class hunting : we miss GetLastEntry and GetPreviousEntry - // to be able to remove any direct reference to TagHT DocEntry *entry = GetFirstEntry(); if( entry ) - //if ( TagHT.begin() != TagHT.end() ) // after Document Parsing { MetaElems = new DicomDirMeta(true); @@ -488,16 +483,6 @@ DicomDirMeta *DicomDir::NewMeta() entry = GetFirstEntry(); } - /*TagDocEntryHT::iterator lastOneButSequence = TagHT.end(); - lastOneButSequence --; - // ALL the 'out of Sequence' Tags belong to Meta Elems - // (we skip 0004|1220 [Directory record sequence] ) - for ( TagDocEntryHT::iterator cc = TagHT.begin(); - cc != lastOneButSequence; - ++cc) - { - MetaElems->AddEntry( cc->second ); - }*/ } else // after root directory parsing { @@ -831,9 +816,6 @@ void DicomDir::CreateDicomDir() // neither an 'IMAGE' SQItem. Skip to next item. continue; } - - //if( si ) - //MoveSQItem(si,tmpSI); tmpSI=s->GetNextSQItem(); } // friend hunting : this one will be difficult to remove !