From: jpr Date: Fri, 7 Jan 2005 12:42:54 +0000 (+0000) Subject: Add accesors on VM X-Git-Tag: Version1.0.bp~448 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=5f22851a18ff688fab8e1191e097dc9cbe25d5ce;p=gdcm.git Add accesors on VM --- diff --git a/src/gdcmDictEntry.h b/src/gdcmDictEntry.h index 1d8c8a8d..364dff5f 100644 --- a/src/gdcmDictEntry.h +++ b/src/gdcmDictEntry.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDictEntry.h,v $ Language: C++ - Date: $Date: 2005/01/07 12:29:17 $ - Version: $Revision: 1.25 $ + Date: $Date: 2005/01/07 12:42:54 $ + Version: $Revision: 1.26 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -47,6 +47,7 @@ public: static TagKey TranslateToKey(uint16_t group, uint16_t element); void SetVR(TagName const &vr); + void SetVM(TagName const &vm); /// \brief tells if the V(alue) R(epresentation) is known (?!) /// @return diff --git a/src/gdcmDocEntry.h b/src/gdcmDocEntry.h index e2798a26..7bdcf692 100644 --- a/src/gdcmDocEntry.h +++ b/src/gdcmDocEntry.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDocEntry.h,v $ Language: C++ - Date: $Date: 2005/01/06 20:03:27 $ - Version: $Revision: 1.34 $ + Date: $Date: 2005/01/07 12:42:54 $ + Version: $Revision: 1.35 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -64,6 +64,17 @@ public: /// Dictionnary, of the current Dicom Header Entry std::string const &GetVR() const { return DicomDict->GetVR(); }; + /// \brief Returns the 'Value Multiplicity' (e.g. "1", "1-n", "6"), + /// found in the Dicom Header or in the Dicom Dictionnary + /// of the current Dicom Header Entry + std::string const &GetVM() const { return DicomDict->GetVM(); }; + + /// Sets the 'Value Representation' of the current Dicom Header Entry + void SetVR( TagName const &v) { DicomDict->SetVR(v); }; + + /// Sets the 'Value Multiplicity' of the current Dicom Header Entry + void SetVM( TagName const &v) { DicomDict->SetVM(v); }; + /// \brief Returns offset (since the beginning of the file, including /// the File Preamble, if any) of the value of the current Dicom HeaderEntry /// \warning offset of the *value*, not of the Dicom Header Entry @@ -80,9 +91,6 @@ public: /// the usable length is set to zero) uint32_t GetReadLength() { return ReadLength; }; - /// Sets the 'Value Representation' of the current Dicom Header Entry - void SetVR( TagName const &v) { DicomDict->SetVR(v); }; - /// \brief Sets both 'Read Length' and 'Usable Length' of the current /// Dicom Header Entry void SetLength(uint32_t l) { ReadLength = UsableLength = l; };