Program: gdcm
Module: $RCSfile: gdcmDictGroupName.cxx,v $
Language: C++
- Date: $Date: 2005/04/05 10:56:25 $
- Version: $Revision: 1.1 $
+ Date: $Date: 2005/04/06 12:49:27 $
+ Version: $Revision: 1.3 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
#include <fstream>
#include <iostream>
+#include <iomanip>
namespace gdcm
{
{
char buff[1024];
uint16_t key;
- GroupName value;
+ TagName value;
while (!from.eof())
{
//-----------------------------------------------------------------------------
// Public
-const GroupName &DictGroupName::GetName(uint16_t group)
+const TagName &DictGroupName::GetName(uint16_t group)
{
DictGroupNameHT::const_iterator it = groupName.find(group);
if (it == groupName.end())
for (DictGroupNameHT::iterator it = groupName.begin(); it != groupName.end(); ++it)
{
- s << "DictGroupName : " << std::hex << it->first << std::dec
- << " = " << it->second << std::endl;
+ s << "DictGroupName : 0x" << std::hex << std::setw(4) << it->first
+ << std::dec << " = " << it->second << std::endl;
}
os << s.str();
}