Program: gdcm
Module: $RCSfile: gdcmDictGroupName.cxx,v $
Language: C++
- Date: $Date: 2005/04/06 12:49:27 $
- Version: $Revision: 1.3 $
+ Date: $Date: 2007/05/23 14:18:09 $
+ Version: $Revision: 1.8 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
#include <iostream>
#include <iomanip>
-namespace gdcm
+namespace GDCM_NAME_SPACE
{
//-----------------------------------------------------------------------------
-/// \brief auto generated function, to fill up the 'Value Representation'
+/// \brief auto generated function, to fill up the 'Group Name'
/// Dictionnary, if relevant file is not found on user's disk
void FillDefaultDictGroupName(DictGroupNameHT &groupName);
{
std::string filename = DictSet::BuildDictPath() + DICT_GROUP_NAME;
std::ifstream from(filename.c_str());
- if(!from)
+ if ( !from )
{
gdcmWarningMacro("Can't open dictionary" << filename.c_str());
FillDefaultDictGroupName(groupName);
from.getline(buff, 1024, '"');
from.getline(buff, 1024, '"');
value = buff;
- if(!from.eof())
+ if ( !from.eof() )
groupName[key] = value;
from.getline(buff, 1024, '\n');
//-----------------------------------------------------------------------------
// Public
+/// \returns the formerly NIH defined ACR-NEMA group name
const TagName &DictGroupName::GetName(uint16_t group)
{
DictGroupNameHT::const_iterator it = groupName.find(group);
- if (it == groupName.end())
+ if ( it == groupName.end() )
{
return GDCM_UNFOUND;
}
* \brief Print all
* @param os The output stream to be written to.
*/
-void DictGroupName::Print(std::ostream &os)
+void DictGroupName::Print(std::ostream &os,std::string const &)
{
std::ostringstream s;