From: jpr Date: Fri, 21 Jan 2005 15:28:18 +0000 (+0000) Subject: Begin of 'friend' classe hunting. X-Git-Tag: Version1.0.bp~223 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;ds=inline;h=2767ee200a3dc05314954bd8bb3a0427f3fcb7d9;p=gdcm.git Begin of 'friend' classe hunting. We miss GetLastEntry and GetPriorEntry methods to be able to remove any direct reference to ElementSet::TagHT by DicomDir --- diff --git a/src/gdcmDicomDir.cxx b/src/gdcmDicomDir.cxx index 481ed229..f94de805 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/21 11:40:55 $ - Version: $Revision: 1.112 $ + Date: $Date: 2005/01/21 15:28:18 $ + Version: $Revision: 1.113 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -89,7 +89,7 @@ DicomDir::DicomDir(std::string const &fileName, bool parseDir ): Initialize(); // sets all private fields to NULL // if user passed a root directory, sure we didn't get anything - if ( TagHT.begin() == TagHT.end() ) // when user passed a Directory to parse + if ( GetFirstEntry() != 0 ) // when user passed a Directory to parse { if (!parseDir) gdcmVerboseMacro( "Entry HT empty for file: "<GetNextSQItem(); } +// friend hunting : this one will be difficult to remove ! TagHT.clear(); }