X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDirObject.cxx;h=e53002695e95d7ada673d7a48a5d0cdaa6d6e435;hb=903abdfb9913f544b7173fce8a9a9bb1141af537;hp=e81d6b77294bdae4b7dde26c8ccf2a8e5bebb942;hpb=d1c68c2c2ae9fadf927053150f7fbc625a7c7366;p=gdcm.git diff --git a/src/gdcmDicomDirObject.cxx b/src/gdcmDicomDirObject.cxx index e81d6b77..e5300269 100644 --- a/src/gdcmDicomDirObject.cxx +++ b/src/gdcmDicomDirObject.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDicomDirObject.cxx,v $ Language: C++ - Date: $Date: 2005/02/01 10:29:55 $ - Version: $Revision: 1.19 $ + Date: $Date: 2005/10/18 08:35:49 $ + Version: $Revision: 1.21 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -19,8 +19,8 @@ #include "gdcmDicomDirObject.h" #include "gdcmGlobal.h" #include "gdcmDebug.h" -#include "gdcmValEntry.h" #include "gdcmDictSet.h" +#include "gdcmDataEntry.h" namespace gdcm { @@ -55,11 +55,11 @@ DicomDirObject::~DicomDirObject() */ void DicomDirObject::FillObject(ListDicomDirMetaElem const &elemList) { - // FillObject fills up the SQItem that will be conneected to the right place + // FillObject fills up the SQItem that will be connected to the right place ListDicomDirMetaElem::const_iterator it; uint16_t tmpGr,tmpEl; DictEntry *dictEntry; - ValEntry *entry; + DataEntry *entry; // for all the Elements found in they own part of the DicomDir dict. for(it = elemList.begin(); it != elemList.end(); ++it) @@ -67,13 +67,13 @@ void DicomDirObject::FillObject(ListDicomDirMetaElem const &elemList) tmpGr = it->Group; tmpEl = it->Elem; dictEntry = Global::GetDicts()->GetDefaultPubDict()->GetEntry(tmpGr,tmpEl); - entry = new ValEntry(dictEntry); + entry = new DataEntry(dictEntry); entry->SetOffset(0); // just to avoid further missprinting - entry->SetValue(it->Value); + entry->SetString(it->Value); AddEntry(entry); } -} +} //----------------------------------------------------------------------------- // Private