1 /*=========================================================================
4 Module: $RCSfile: gdcmDicomDirObject.cxx,v $
6 Date: $Date: 2005/02/01 10:29:55 $
7 Version: $Revision: 1.19 $
9 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10 l'Image). All rights reserved. See Doc/License.txt or
11 http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notices for more information.
17 =========================================================================*/
19 #include "gdcmDicomDirObject.h"
20 #include "gdcmGlobal.h"
21 #include "gdcmDebug.h"
22 #include "gdcmValEntry.h"
23 #include "gdcmDictSet.h"
27 //-----------------------------------------------------------------------------
31 * @param depth Sequence depth level
34 DicomDirObject::DicomDirObject(int depth)
40 * \brief Canonical destructor.
42 DicomDirObject::~DicomDirObject()
46 //-----------------------------------------------------------------------------
49 //-----------------------------------------------------------------------------
52 * \brief add the 'Object' related Dicom Elements to the listEntries
53 * of a partially created DICOMDIR
54 * @param elemList Element List to add at the right place
56 void DicomDirObject::FillObject(ListDicomDirMetaElem const &elemList)
58 // FillObject fills up the SQItem that will be conneected to the right place
59 ListDicomDirMetaElem::const_iterator it;
64 // for all the Elements found in they own part of the DicomDir dict.
65 for(it = elemList.begin(); it != elemList.end(); ++it)
69 dictEntry = Global::GetDicts()->GetDefaultPubDict()->GetEntry(tmpGr,tmpEl);
70 entry = new ValEntry(dictEntry);
71 entry->SetOffset(0); // just to avoid further missprinting
72 entry->SetValue(it->Value);
78 //-----------------------------------------------------------------------------
81 //-----------------------------------------------------------------------------
84 //-----------------------------------------------------------------------------
85 } // end namespace gdcm