X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomEntry.cxx;h=3f466e447fea39f741473a16f825fb944de98e96;hb=76ac46b16fd92d0fb444f786d4946424d9029315;hp=ef260fba115243b440548f26943042a2e30021af;hpb=05c174bd812b9e375823d6a95683cb5036795a02;p=gdcm.git diff --git a/src/gdcmDicomEntry.cxx b/src/gdcmDicomEntry.cxx index ef260fba..3f466e44 100644 --- a/src/gdcmDicomEntry.cxx +++ b/src/gdcmDicomEntry.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDicomEntry.cxx,v $ Language: C++ - Date: $Date: 2005/10/21 07:38:57 $ - Version: $Revision: 1.3 $ + Date: $Date: 2007/05/23 14:18:09 $ + Version: $Revision: 1.5 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -17,14 +17,14 @@ =========================================================================*/ #include "gdcmDicomEntry.h" -#include "gdcmDebug.h" -#include "gdcmUtil.h" +//#include "gdcmDebug.h" +//#include "gdcmUtil.h" -#include // for std::ios::left, ... +//#include // for std::ios::left, ... #include -#include // for sprintf +//#include // for sprintf -namespace gdcm +namespace GDCM_NAME_SPACE { //----------------------------------------------------------------------------- // Constructor / Destructor @@ -37,8 +37,9 @@ namespace gdcm DicomEntry::DicomEntry(const uint16_t &group,const uint16_t &elem, const VRKey &vr) { - Tag.SetGroup(group); - Tag.SetElement(elem); + //Tag.SetGroupElement(group); + //Tag.SetElement(elem); + Tag.SetGroupElement(group,elem); VR = vr; } @@ -51,20 +52,6 @@ DicomEntry::~DicomEntry() //----------------------------------------------------------------------------- // Public -/** - * \brief concatenates 2 uint16_t (supposed to be a Dicom group number - * and a Dicom element number) - * @param group the Dicom group number used to build the tag - * @param elem the Dicom element number used to build the tag - * @return the built tag - */ -TagKey DicomEntry::TranslateToKey(uint16_t group, uint16_t elem) -{ - // according to 'Purify', TranslateToKey is one of the most - // time consuming methods. - // Let's try to shorten it ! - return TagKey(group,elem); -} //----------------------------------------------------------------------------- // Protected