Program: gdcm
Module: $RCSfile: gdcmDefaultDicts.cxx.in,v $
Language: C++
- Date: $Date: 2005/10/19 12:01:50 $
- Version: $Revision: 1.10 $
+ Date: $Date: 2007/05/23 14:18:08 $
+ Version: $Revision: 1.13 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
#include "gdcmDictGroupName.h"
#include "gdcmDicomDirElement.h"
-namespace gdcm
+namespace GDCM_NAME_SPACE
{
typedef struct
void FillDefaultDataDict(Dict *d)
{
+ DictEntry *e;
unsigned int i = 0;
DICT_ENTRY n = datadir[i];
while( n.name != 0 )
{
- const DictEntry e( n.group, n.element, n.vr, n.vm, n.name);
+ e = DictEntry::New( n.group, n.element, n.vr, n.vm, n.name);
d->AddEntry( e );
+ e->Delete();
n = datadir[++i];
}
}
const char *type;
unsigned short group;
unsigned short element;
+ //VRKey vr;
+ const char *vr;
const char *value;
} ELEMENT;
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;
elem.Group = e.group;
elem.Elem = e.element;
+ elem.VR = e.vr;
elem.Value = e.value;
dde->AddEntry( type, elem);
e = dataElement[++i];