1 /*=========================================================================
4 Module: $RCSfile: gdcmDicomDirSerie.cxx,v $
6 Date: $Date: 2004/08/01 00:59:21 $
7 Version: $Revision: 1.12 $
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.htm 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 "gdcmDicomDirSerie.h"
20 #include "gdcmDicomDirElement.h"
21 #include "gdcmGlobal.h"
23 //-----------------------------------------------------------------------------
24 // Constructor / Destructor
27 * @param s SQ Item holding the elements related to this "SERIE" part
28 * @param ptagHT pointer to the HTable (gdcmObject needs it
29 * to build the gdcmDocEntries)
31 gdcmDicomDirSerie::gdcmDicomDirSerie(gdcmSQItem *s, TagDocEntryHT *ptagHT):
34 docEntries = s->GetDocEntries();
39 * @param ptagHT pointer to the HTable (gdcmObject needs it
40 * to build the gdcmDocEntries)
42 gdcmDicomDirSerie::gdcmDicomDirSerie(TagDocEntryHT *ptagHT):
47 * \brief Canonical destructor.
49 gdcmDicomDirSerie::~gdcmDicomDirSerie()
51 for(ListDicomDirImage::iterator cc = images.begin();
59 //-----------------------------------------------------------------------------
62 * \brief Prints the Object
65 void gdcmDicomDirSerie::Print(std::ostream &os)
67 os << "SERIE" << std::endl;
68 gdcmObject::Print(os);
70 for(ListDicomDirImage::iterator cc = images.begin();
74 (*cc)->SetPrintLevel(PrintLevel);
79 //-----------------------------------------------------------------------------
82 * \brief adds a new Image (with the basic elements) to a partially created DICOMDIR
84 gdcmDicomDirImage * gdcmDicomDirSerie::NewImage()
86 std::list<gdcmElement> elemList =
87 gdcmGlobal::GetDicomDirElements()->GetDicomDirImageElements();
89 gdcmDicomDirImage *st = new gdcmDicomDirImage(PtagHT);
91 images.push_front(st);
95 //-----------------------------------------------------------------------------
98 //-----------------------------------------------------------------------------
101 //-----------------------------------------------------------------------------