]> Creatis software - gdcm.git/commitdiff
Add VM related methods
authorjpr <jpr>
Fri, 7 Jan 2005 16:14:58 +0000 (16:14 +0000)
committerjpr <jpr>
Fri, 7 Jan 2005 16:14:58 +0000 (16:14 +0000)
src/gdcmDictEntry.cxx
src/gdcmDictEntry.h
src/gdcmDocEntry.h

index b754cc2c53088a06c5923539e54bdac85d7f560a..54c802b63bf40694924d9931ad3375b9942d0400 100644 (file)
@@ -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 
    {
index 364dff5fc46406c279ff98ec510c75e25f6ae322..ac0250ee6695b99a4f37cb6172453b300a4c0b1e 100644 (file)
@@ -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; }
index 7bdcf692f1bb863134bec78009faf098577d2a0a..5a95fe0a6e3014b9e20d0ecf9428d35262e39502 100644 (file)
@@ -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; };