From 0571787bc30c2152d5f5e1a1cce820c69223d1c6 Mon Sep 17 00:00:00 2001 From: jpr Date: Thu, 9 Jan 2003 17:03:37 +0000 Subject: [PATCH] ajout fonctions int SetShaElValByName(string content, string ShadowTagName); int SetShaElValByNumber(string content, guint16 group, guint16 element); --- src/gdcm.h | 4 ++-- src/gdcmHeader.cxx | 23 +++++++++++++++++++++++ 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/src/gdcm.h b/src/gdcm.h index 20e75413..d990d369 100644 --- a/src/gdcm.h +++ b/src/gdcm.h @@ -479,8 +479,8 @@ public: int SetPubElValByName(string content, string TagName); int SetPubElValByNumber(string content, guint16 group, guint16 element); - // TODO Swig int SetShaElValByName(string content, string ShadowTagName); - // TODO Swig int SetShaElValByNumber(string content, guint16 group, guint16 element); + int SetShaElValByName(string content, string ShadowTagName); + int SetShaElValByNumber(string content, guint16 group, guint16 element); }; diff --git a/src/gdcmHeader.cxx b/src/gdcmHeader.cxx index be4f259a..00468e79 100644 --- a/src/gdcmHeader.cxx +++ b/src/gdcmHeader.cxx @@ -1111,6 +1111,29 @@ int gdcmHeader::SetPubElValByName(string content, string TagName) { return ( PubElVals.SetElValueByName (content, TagName) ); } + +/** + * \ingroup gdcmHeader + * \brief Modifie la valeur d'un ElValue déja existant + * \ dans le ShaElVals du gdcmHeader, + * \ accédé par ses numero de groupe et d'element. + */ +int gdcmHeader::SetShaElValByNumber(string content, guint16 group, guint16 element) { + + return ( ShaElVals.SetElValueByNumber (content, group, element) ); +} + + +/** + * \ingroup gdcmHeader + * \brief Modifie la valeur d'un ElValue déja existant + * \ dans le ShaElVals du gdcmHeader, + * \ accédé par son nom + */ +int gdcmHeader::SetShaElValByName(string content, string TagName) { + + return ( ShaElVals.SetElValueByName (content, TagName) ); +} /** * \ingroup gdcmHeader * \brief Parses the header of the file but does NOT load element values. -- 2.48.1