Program: gdcm
Module: $RCSfile: gdcmDictSet.cxx,v $
Language: C++
- Date: $Date: 2004/10/27 22:31:12 $
- Version: $Revision: 1.42 $
+ Date: $Date: 2004/10/28 19:53:29 $
+ Version: $Revision: 1.44 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
Dicts.clear();
// Remove virtual dictionnary entries
-/* TagKeyHT::iterator it;
- for(it = VirtualEntry.begin(); it != VirtualEntry.end(); ++it)
- {
- DictEntry entry = it->second;
- if ( entry )
- {
- delete entry;
- }
- it->second = NULL;
- }*/
+ VirtualEntry.clear();
}
//-----------------------------------------------------------------------------
else
{
DictEntry ent(group, element, vr, fourth, name);
- //VirtualEntry[tag] = entry;
VirtualEntry.insert(
- TagKeyHT::value_type<TagKey, DictEntry>
+ std::map<TagKey, DictEntry>::value_type
(tag, ent));
entry = &(VirtualEntry.find(tag)->second);
}
{
Dicts[name] = newDict;
- return true; //FIXME
+ return true;
}
//-----------------------------------------------------------------------------