X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDictEntry.cxx;h=8411e2edf27c6fc58650f0d2276edc04f1d71e02;hb=867b8ef63054497249cc3a0138107383d60351dc;hp=c11d06801529288e436707f669f3ec660cfde550;hpb=c9dd24ae7aab3c9f32af740ebfce6dfb47bd855f;p=gdcm.git diff --git a/src/gdcmDictEntry.cxx b/src/gdcmDictEntry.cxx index c11d0680..8411e2ed 100644 --- a/src/gdcmDictEntry.cxx +++ b/src/gdcmDictEntry.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDictEntry.cxx,v $ Language: C++ - Date: $Date: 2004/10/10 00:42:54 $ - Version: $Revision: 1.25 $ + Date: $Date: 2004/10/18 02:17:06 $ + Version: $Revision: 1.27 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -20,6 +20,8 @@ #include "gdcmDebug.h" #include "gdcmUtil.h" +namespace gdcm +{ //----------------------------------------------------------------------------- // Constructor / Destructor @@ -33,9 +35,9 @@ * @param name description of the element */ -gdcmDictEntry::gdcmDictEntry(uint16_t group, uint16_t element, - std::string vr, std::string fourth, - std::string name) +DictEntry::DictEntry(uint16_t group, uint16_t element, + TagName vr, TagName fourth, + TagName name) { Group = group; Element = element; @@ -57,9 +59,9 @@ gdcmDictEntry::gdcmDictEntry(uint16_t group, uint16_t element, * @param element the Dicom element number used to build the tag * @return the built tag */ -gdcmTagKey gdcmDictEntry::TranslateToKey(uint16_t group, uint16_t element) +TagKey DictEntry::TranslateToKey(uint16_t group, uint16_t element) { - gdcmTagKey key = gdcmUtil::Format("%04x|%04x", group , element); + TagKey key = Util::Format("%04x|%04x", group , element); return key; } @@ -70,7 +72,7 @@ gdcmTagKey gdcmDictEntry::TranslateToKey(uint16_t group, uint16_t element) * \ is unset then overwrite it. * @param vr New V(alue) R(epresentation) to be set. */ -void gdcmDictEntry::SetVR(std::string const & vr) +void DictEntry::SetVR(TagName const & vr) { if ( IsVRUnknown() ) { @@ -78,7 +80,7 @@ void gdcmDictEntry::SetVR(std::string const & vr) } else { - dbg.Error(true, "gdcmDictEntry::SetVR", + dbg.Error(true, "DictEntry::SetVR", "Overwriting VR might compromise a dictionary"); } } @@ -90,3 +92,5 @@ void gdcmDictEntry::SetVR(std::string const & vr) // Private //----------------------------------------------------------------------------- +} // end namespace gdcm +