From: jpr Date: Fri, 7 Jan 2005 16:14:58 +0000 (+0000) Subject: Add VM related methods X-Git-Tag: Version1.0.bp~444 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=51cbcb8520d5fcb26ea0ceec99f58b8db9692876;p=gdcm.git Add VM related methods --- diff --git a/src/gdcmDictEntry.cxx b/src/gdcmDictEntry.cxx index b754cc2c..54c802b6 100644 --- a/src/gdcmDictEntry.cxx +++ b/src/gdcmDictEntry.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDictEntry.cxx,v $ Language: C++ - Date: $Date: 2005/01/07 16:07:01 $ - Version: $Revision: 1.32 $ + Date: $Date: 2005/01/07 16:14:58 $ + Version: $Revision: 1.33 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -93,7 +93,7 @@ void DictEntry::SetVM(TagName const &vm) { if ( IsVMUnknown() ) { - VR = vr; + VM = vm; } else { diff --git a/src/gdcmDictEntry.h b/src/gdcmDictEntry.h index 364dff5f..ac0250ee 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:42:54 $ - Version: $Revision: 1.26 $ + Date: $Date: 2005/01/07 16:14:58 $ + Version: $Revision: 1.27 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -53,6 +53,10 @@ public: /// @return bool IsVRUnknown() { return VR == GDCM_UNKNOWN; } + /// \brief tells if the V(alue) M(ultiplicity) is known (?!) + /// @return + bool IsVMUnknown() { return VM == GDCM_UNKNOWN; } + /// \brief Returns the Dicom Group Number of the current DictEntry /// @return the Dicom Group Number uint16_t GetGroup() { return Group; } diff --git a/src/gdcmDocEntry.h b/src/gdcmDocEntry.h index 7bdcf692..5a95fe0a 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/07 12:42:54 $ - Version: $Revision: 1.35 $ + Date: $Date: 2005/01/07 16:14:58 $ + Version: $Revision: 1.36 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -121,6 +121,10 @@ public: /// @return true if the VR is unknown bool IsVRUnknown() { return DicomDict->IsVRUnknown(); }; + /// \brief Tells us if the VM of the current Dicom Element is Unknown + /// @return true if the VM is unknown + bool IsVMUnknown() { return DicomDict->IsVMUnknown(); }; + /// \brief Sets the DicEntry of the current Dicom Element /// @param newEntry pointer to the DictEntry void SetDictEntry(DictEntry *newEntry) { DicomDict = newEntry; };