]> Creatis software - gdcm.git/commitdiff
CheckEntryIfExistByNumber returns a bool (no longer an int, because we use now a...
authorjpr <jpr>
Fri, 3 Sep 2004 15:11:35 +0000 (15:11 +0000)
committerjpr <jpr>
Fri, 3 Sep 2004 15:11:35 +0000 (15:11 +0000)
src/gdcmDocument.cxx
src/gdcmDocument.h

index 7acd21ae7b02260ec465f35d3e1dcc6f81b7928a..7ab750eca46dfc0d5d2b30e5a4bc5def20170afa 100644 (file)
@@ -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);
index 6a2b4a34a3f339cb095575da6624e333771f90c4..0ddfb468f8203c49f0e692f79a3cbd01a32f1c37 100644 (file)
@@ -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);