]> 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 ed331fecfacadd1f912f01423c70708ab55b4cc8..b80390571020f82511642a1c8697eb7235130054 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 72f2ac51521e0a6af0ea8e0877549dc7795af5b4..353b7cd6dbc7911b1edbd085aa46269409fd12ab 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 2cfd69f70eded4db1f3ea55986771a83126c3649..ce3d99565c7b6e4c18d50ce109fb03c946be79d6 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();