]> Creatis software - gdcm.git/blobdiff - src/gdcmDefaultDicts.cxx.in
Remove useless accesses to the Dicom Dictionnary std::map
[gdcm.git] / src / gdcmDefaultDicts.cxx.in
index 21d39605d90972db675831fec5444b7e21d4ee50..9e7b439751434b0855658d4d052a260a05b5ae10 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDefaultDicts.cxx.in,v $
   Language:  C++
-  Date:      $Date: 2005/10/20 15:24:08 $
-  Version:   $Revision: 1.11 $
+  Date:      $Date: 2006/04/11 16:03:26 $
+  Version:   $Revision: 1.12 $
 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -76,6 +76,8 @@ typedef struct
    const char *type;
    unsigned short group;
    unsigned short element;
+   //VRKey vr;
+   const char *vr;
    const char *value;
 } ELEMENT;
 
@@ -93,7 +95,7 @@ void FillDefaultDIRDict(DicomDirElement *dde)
 
    while( e.type != 0 )
    {
-      // Force to use the string comparision operator ==
+      // Force to use the string comparison operator ==
       strType = e.type;
       if( strType == "metaElem" )
          type = DD_META;
@@ -110,6 +112,7 @@ void FillDefaultDIRDict(DicomDirElement *dde)
 
       elem.Group = e.group;
       elem.Elem  = e.element;
+      elem.VR    = e.vr;
       elem.Value = e.value;
       dde->AddEntry( type, elem);
       e = dataElement[++i];