From: jpr Date: Fri, 17 Jun 2005 12:36:07 +0000 (+0000) Subject: Add comments X-Git-Tag: Version1.2.bp~482 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=e9d0fe99cef1e82bbc29c6dd5f65f7c1ccbd3412;p=gdcm.git Add comments --- diff --git a/src/gdcmDicomDir.cxx b/src/gdcmDicomDir.cxx index 2af9aaf2..467f6394 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/06/03 16:08:16 $ - Version: $Revision: 1.140 $ + Date: $Date: 2005/06/17 12:36:07 $ + Version: $Revision: 1.141 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -257,7 +257,7 @@ DicomDirMeta *DicomDir::NewMeta() DocEntry *entry = GetFirstEntry(); if( entry ) { - MetaElems = new DicomDirMeta(true); + MetaElems = new DicomDirMeta(true); // true = empty entry = GetFirstEntry(); while( entry ) @@ -273,7 +273,7 @@ DicomDirMeta *DicomDir::NewMeta() } else // after root directory parsing { - MetaElems = new DicomDirMeta(false); + MetaElems = new DicomDirMeta(false); // false = not empty } MetaElems->SetSQItemNumber(0); // To avoid further missprinting return MetaElems; diff --git a/src/gdcmDocEntrySet.h b/src/gdcmDocEntrySet.h index 348ed8e1..1247e043 100644 --- a/src/gdcmDocEntrySet.h +++ b/src/gdcmDocEntrySet.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDocEntrySet.h,v $ Language: C++ - Date: $Date: 2005/02/10 11:20:34 $ - Version: $Revision: 1.50 $ + Date: $Date: 2005/06/17 12:36:07 $ + Version: $Revision: 1.51 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -38,9 +38,9 @@ typedef std::string BaseTagKey; * \brief * \ref DocEntrySet is an abstract base class for \ref ElementSet * and \ref SQItem which are both containers for DocEntries. - * \ref ElementSet is based on the STL map<> container - * (see \ref ElementSet::TagHT), as opposed to \ref SQItem - * which is based on an STL list container (see \ref ListDocEntry). + * - \ref ElementSet is based on the STL map<> container + * (see \ref ElementSet::TagHT) + * - \ref SQItem is based on an STL list container (see \ref ListDocEntry). * Since the syntax for adding a new element to a map<> or a list<> * differ, \ref DocEntrySet is designed as an adapter to unify the * interfaces of \ref DocEntrySet and \ref ElementSet. diff --git a/src/gdcmDocument.cxx b/src/gdcmDocument.cxx index 17a7cdfe..508eb5d4 100644 --- a/src/gdcmDocument.cxx +++ b/src/gdcmDocument.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDocument.cxx,v $ Language: C++ - Date: $Date: 2005/06/10 14:05:38 $ - Version: $Revision: 1.245 $ + Date: $Date: 2005/06/17 12:36:07 $ + Version: $Revision: 1.246 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -1247,7 +1247,7 @@ void Document::LoadDocEntry(DocEntry *entry) { newValue = Util::DicomString(str, length+1); gdcmWarningMacro("Warning: bad length: " << length << - " ,For string :" << newValue.c_str()); + " For string :" << newValue.c_str()); // Since we change the length of string update it length //entry->SetReadLength(length+1); } @@ -1261,7 +1261,12 @@ void Document::LoadDocEntry(DocEntry *entry) { if ( Fp->fail() || Fp->eof()) { - gdcmWarningMacro("Unread element value"); + if ( Fp->fail() ) + gdcmWarningMacro("--> fail"); + + gdcmWarningMacro("Unread element value " << valEntry->GetKey() + << " lgt : " << valEntry->GetReadLength() + << " at " << std::hex << valEntry->GetOffset()); valEntry->SetValue(GDCM_UNREAD); return; }