From 332835b05f78803ae6d2e92cf95c25548a229532 Mon Sep 17 00:00:00 2001 From: jpr Date: Fri, 3 Sep 2004 15:11:35 +0000 Subject: [PATCH] CheckEntryIfExistByNumber returns a bool (no longer an int, because we use now a map, not a multimap) --- src/gdcmDocument.cxx | 8 ++++---- src/gdcmDocument.h | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/gdcmDocument.cxx b/src/gdcmDocument.cxx index 7acd21ae..7ab750ec 100644 --- a/src/gdcmDocument.cxx +++ b/src/gdcmDocument.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDocument.cxx,v $ Language: C++ - Date: $Date: 2004/08/31 14:24:47 $ - Version: $Revision: 1.69 $ + Date: $Date: 2004/09/03 15:11:35 $ + Version: $Revision: 1.70 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -721,9 +721,9 @@ bool gdcmDocument::ReplaceIfExistByNumber(std::string const & value, * \brief Checks if a given Dicom Element exists within the H table * @param group Group number of the searched Dicom Element * @param element Element number of the searched Dicom Element - * @return number of occurences + * @return true is found */ -int gdcmDocument::CheckIfEntryExistByNumber(uint16_t group, uint16_t element ) +bool gdcmDocument::CheckIfEntryExistByNumber(uint16_t group, uint16_t element ) { const std::string &key = gdcmDictEntry::TranslateToKey(group, element ); return TagHT.count(key); diff --git a/src/gdcmDocument.h b/src/gdcmDocument.h index 6a2b4a34..0ddfb468 100644 --- a/src/gdcmDocument.h +++ b/src/gdcmDocument.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDocument.h,v $ Language: C++ - Date: $Date: 2004/09/03 07:57:10 $ - Version: $Revision: 1.34 $ + Date: $Date: 2004/09/03 15:11:35 $ + Version: $Revision: 1.35 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -161,7 +161,7 @@ protected: void Parse7FE0 (); // Entry - int CheckIfEntryExistByNumber(uint16_t group, uint16_t elem ); // int ! + bool CheckIfEntryExistByNumber(uint16_t group, uint16_t elem ); public: virtual std::string GetEntryByName (TagName const & tagName); virtual std::string GetEntryVRByName (TagName const & tagName); -- 2.45.1