From 21dc537d0c6c274bf1bc49084813a9f4e4cf29eb Mon Sep 17 00:00:00 2001 From: jpr Date: Mon, 10 Mar 2003 13:26:05 +0000 Subject: [PATCH] declaration de dcm2acr --- TODO | 2 +- src/gdcmHeader.cxx | 19 +++++++++++++++++++ src/gdcmHeader.h | 3 +++ 3 files changed, 23 insertions(+), 1 deletion(-) 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); } }; -- 2.45.1