From: jpr Date: Mon, 10 Mar 2003 13:26:05 +0000 (+0000) Subject: declaration de dcm2acr X-Git-Tag: April2003~27 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=21dc537d0c6c274bf1bc49084813a9f4e4cf29eb;p=gdcm.git declaration de dcm2acr --- diff --git a/TODO b/TODO index 420485ae..1ba8deee 100644 --- a/TODO +++ b/TODO @@ -23,7 +23,7 @@ * GetPubElValByNumber doit faire la difference entre chaine vide et chaine pas touve''. Eventuellement raiser une exception ? * gdcmHeader::LoadElements only loads the element whose length is - below the specified size. When accessing the value of such a element + below the specified size. When accessing the value of such an element the content is unfound ! Find a decent way of loading the value on explicit demand. * fournir une method qui ne fait que lire les elements passes en arguments diff --git a/src/gdcmHeader.cxx b/src/gdcmHeader.cxx index cfa470a3..38763a3a 100644 --- a/src/gdcmHeader.cxx +++ b/src/gdcmHeader.cxx @@ -1277,6 +1277,22 @@ int gdcmHeader::SetPubElValByName(string content, string TagName) { return ( PubElVals.SetElValueByName (content, TagName) ); } +/** + * \ingroup gdcmHeader + * \brief Accesses an existing ElValue in the PubElVals of this instance + * through it's (group, element) and modifies it's length with + * the given value. + * NOT FOR BOZOs ! + * @param contents new length to substitute with + * @param group group of the ElVal to modify + * @param element element of the ElVal to modify + */ +int gdcmHeader::SetPubElValLengthByNumber(guint32 lgr, guint16 group, + guint16 element) +{ + return ( PubElVals.SetElValueLengthByNumber (lgr, group, element) ); +} + /** * \ingroup gdcmHeader * \brief Accesses an existing ElValue in the ShaElVals of this instance @@ -1292,6 +1308,9 @@ int gdcmHeader::SetShaElValByNumber(string content, return ( ShaElVals.SetElValueByNumber (content, group, element) ); } + + + /** * \ingroup gdcmHeader * \brief Accesses an existing ElValue in the ShaElVals of this instance diff --git a/src/gdcmHeader.h b/src/gdcmHeader.h index 6b665031..02c58ef6 100644 --- a/src/gdcmHeader.h +++ b/src/gdcmHeader.h @@ -159,6 +159,9 @@ public: int SetPubElValByNumber(string content, guint16 group, guint16 element); int SetShaElValByName(string content, string ShadowTagName); int SetShaElValByNumber(string content, guint16 group, guint16 element); + + int gdcmHeader::SetPubElValLengthByNumber(guint32 lgr, guint16 group, + guint16 element); ElValSet GetPubElVals() { return(PubElVals); } };