Program: gdcm
Module: $RCSfile: gdcmDictEntry.cxx,v $
Language: C++
- Date: $Date: 2004/10/10 00:42:54 $
- Version: $Revision: 1.25 $
+ Date: $Date: 2004/11/16 02:54:35 $
+ Version: $Revision: 1.29 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
#include "gdcmDebug.h"
#include "gdcmUtil.h"
+namespace gdcm
+{
//-----------------------------------------------------------------------------
// Constructor / Destructor
* @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 const & vr, TagName const & fourth,
+ TagName const & name)
{
Group = group;
Element = 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);
-
- return key;
+ return Util::Format("%04x|%04x", group, 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() )
{
}
else
{
- dbg.Error(true, "gdcmDictEntry::SetVR",
+ dbg.Error(true, "DictEntry::SetVR",
"Overwriting VR might compromise a dictionary");
}
}
// Private
//-----------------------------------------------------------------------------
+} // end namespace gdcm
+