]> Creatis software - gdcm.git/commitdiff
Add accesors on VM
authorjpr <jpr>
Fri, 7 Jan 2005 12:42:54 +0000 (12:42 +0000)
committerjpr <jpr>
Fri, 7 Jan 2005 12:42:54 +0000 (12:42 +0000)
src/gdcmDictEntry.h
src/gdcmDocEntry.h

index 1d8c8a8da13f20c7809e94690adb73da46be4887..364dff5fc46406c279ff98ec510c75e25f6ae322 100644 (file)
@@ -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 
index e2798a2651824e04dadba83128bd4ee05a764687..7bdcf692f1bb863134bec78009faf098577d2a0a 100644 (file)
@@ -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; };