From: jpr Date: Thu, 9 Jan 2003 17:03:37 +0000 (+0000) Subject: ajout fonctions X-Git-Tag: April2003~59 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=0571787bc30c2152d5f5e1a1cce820c69223d1c6;p=gdcm.git ajout fonctions int SetShaElValByName(string content, string ShadowTagName); int SetShaElValByNumber(string content, guint16 group, guint16 element); --- 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.