From: jpr Date: Thu, 13 Jan 2005 09:46:54 +0000 (+0000) Subject: Modify comments and verbosity in DicomDir constuctor X-Git-Tag: Version1.0.bp~358 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=e6969609570acacb29beb8efaf98611b52f9b595;p=gdcm.git Modify comments and verbosity in DicomDir constuctor --- diff --git a/src/gdcmDicomDir.cxx b/src/gdcmDicomDir.cxx index 66dd5549..6f15a2f7 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/12 17:57:58 $ - Version: $Revision: 1.98 $ + Date: $Date: 2005/01/13 09:46:54 $ + Version: $Revision: 1.99 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -82,16 +82,21 @@ DicomDir::DicomDir() DicomDir::DicomDir(std::string const &fileName, bool parseDir ): Document( fileName ) { - // Whatever user passed (a root directory or a DICOMDIR) - // and whatever the value of parseDir was, - // Document is already executed + // At this step, Document constructor is already executed, + // whatever user passed (a root directory or a DICOMDIR) + // and whatever the value of parseDir was. + // (nothing is cheked in Document constructor, to avoid overhead) + 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 { - gdcmVerboseMacro( "Entry HT empty"); + if (!parseDir) + gdcmVerboseMacro( "Entry HT empty for file: "<