X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=src%2FgdcmDicomEntry.cxx;h=9afd602cd2232270794a1c077f12ec9c332409b0;hb=3f244b54d3cff8a8ccbb2f8586ba992618075b41;hp=9a3923c34956db1585c01ddd09e4488df1176c89;hpb=eacd2efd90ffb9015d6358f135cb17a838a29abb;p=gdcm.git diff --git a/src/gdcmDicomEntry.cxx b/src/gdcmDicomEntry.cxx index 9a3923c3..9afd602c 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/20 08:58:17 $ - Version: $Revision: 1.2 $ + Date: $Date: 2006/04/11 16:03:26 $ + Version: $Revision: 1.4 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -17,12 +17,12 @@ =========================================================================*/ #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 { @@ -33,14 +33,13 @@ namespace gdcm * @param group DICOM-Group Number * @param elem DICOM-Element Number * @param vr Value Representation - * @param vm Value Multiplicity - * @param name description of the element */ -DicomEntry::DicomEntry(const uint16_t &group,const uint16_t &elt, +DicomEntry::DicomEntry(const uint16_t &group,const uint16_t &elem, const VRKey &vr) { - Tag.SetGroup(group); - Tag.SetElement(elt); + //Tag.SetGroupElement(group); + //Tag.SetElement(elem); + Tag.SetGroupElement(group,elem); VR = vr; } @@ -53,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