X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDictGroupName.cxx;h=9d07f287fe8a486fbf8883f1a55893013a22204f;hb=4297b237d3010e089a89e0242d4151168553778f;hp=f714280cf2b0d7ef0c62f0381543a269505ab8ca;hpb=f54bad1b76b560edec0df61278f05759ce16f859;p=gdcm.git diff --git a/src/gdcmDictGroupName.cxx b/src/gdcmDictGroupName.cxx index f714280c..9d07f287 100644 --- a/src/gdcmDictGroupName.cxx +++ b/src/gdcmDictGroupName.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDictGroupName.cxx,v $ Language: C++ - Date: $Date: 2005/04/06 12:49:27 $ - Version: $Revision: 1.3 $ + Date: $Date: 2005/10/26 08:04:15 $ + Version: $Revision: 1.6 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -41,7 +41,7 @@ DictGroupName::DictGroupName() { 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); @@ -61,7 +61,7 @@ DictGroupName::DictGroupName() from.getline(buff, 1024, '"'); from.getline(buff, 1024, '"'); value = buff; - if(!from.eof()) + if ( !from.eof() ) groupName[key] = value; from.getline(buff, 1024, '\n'); @@ -80,10 +80,11 @@ DictGroupName::~DictGroupName() //----------------------------------------------------------------------------- // 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; } @@ -102,7 +103,7 @@ const TagName &DictGroupName::GetName(uint16_t group) * \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;