From: regrain Date: Thu, 16 Dec 2004 10:51:48 +0000 (+0000) Subject: * src/gdcmFile.cxx : Add the code of ReplaceOrCreateByNumber to not have X-Git-Tag: Version1.0.bp~492 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=2903216d32144f3c716c1dc14fb29a5bc422c3b4;p=gdcm.git * src/gdcmFile.cxx : Add the code of ReplaceOrCreateByNumber to not have problems when compiling with the python wrapping -- BeNours --- diff --git a/ChangeLog b/ChangeLog index ed331fec..b8039057 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2004-12-16 Benoit Regrain + * src/gdcmFile.cxx : Add the code of ReplaceOrCreateByNumber to not have + problems when compiling with the python wrapping + 2004-12-16 Benoit Regrain * src/gdcmFile.cxx : bug fix. Omitted a Push in the DocEntryArchive when writting in ImplicitVR diff --git a/src/gdcmFile.cxx b/src/gdcmFile.cxx index 72f2ac51..353b7cd6 100644 --- a/src/gdcmFile.cxx +++ b/src/gdcmFile.cxx @@ -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 */ diff --git a/src/gdcmFile.h b/src/gdcmFile.h index 2cfd69f7..ce3d9956 100644 --- a/src/gdcmFile.h +++ b/src/gdcmFile.h @@ -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();