]> Creatis software - gdcm.git/commitdiff
* src/gdcmFile.cxx : Add the code of ReplaceOrCreateByNumber to not have
authorregrain <regrain>
Thu, 16 Dec 2004 10:51:48 +0000 (10:51 +0000)
committerregrain <regrain>
Thu, 16 Dec 2004 10:51:48 +0000 (10:51 +0000)
     problems when compiling with the python wrapping
   -- BeNours

ChangeLog
src/gdcmFile.cxx
src/gdcmFile.h

index ed331fe..b803905 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-12-16 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
+   * src/gdcmFile.cxx : Add the code of ReplaceOrCreateByNumber to not have
+     problems when compiling with the python wrapping
+
 2004-12-16 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
    * src/gdcmFile.cxx : bug fix. Omitted a Push in the DocEntryArchive when
      writting in ImplicitVR
index 72f2ac5..353b7cd 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmFile.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/12/16 10:41:59 $
-  Version:   $Revision: 1.176 $
+  Date:      $Date: 2004/12/16 10:51:49 $
+  Version:   $Revision: 1.177 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -453,6 +453,12 @@ bool File::ReplaceOrCreateByNumber(std::string const& content,
    return HeaderInternal->ReplaceOrCreateByNumber(content,group,element) != NULL;
 }
 
+bool File::ReplaceOrCreateByNumber(uint8_t* binArea, int lgth,
+                                   uint16_t group, uint16_t element)
+{
+   return HeaderInternal->ReplaceOrCreateByNumber(binArea,lgth,group,element) != NULL;
+}
+
 /**
  * \brief Access to the underlying \ref PixelReadConverter RGBA LUT
  */
index 2cfd69f..ce3d995 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmFile.h,v $
   Language:  C++
-  Date:      $Date: 2004/12/10 13:49:07 $
-  Version:   $Revision: 1.86 $
+  Date:      $Date: 2004/12/16 10:51:49 $
+  Version:   $Revision: 1.87 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -90,7 +90,7 @@ public:
    bool ReplaceOrCreateByNumber(std::string const& content,
                                 uint16_t group, uint16_t element);
    bool ReplaceOrCreateByNumber(uint8_t* binArea, int lgth,
-                                uint16_t group, uint16_t elem);
+                                uint16_t group, uint16_t element);
 
    uint8_t* GetLutRGBA();