X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=src%2FgdcmDicomDirSerie.cxx;h=146d1c06ee771e0454d45450c2ac5823073fec1a;hb=a5477cb88aa763acdea8f3fbd6e58d70cec8f42e;hp=f3566ae099b6769c67a65228f62444076cf10e09;hpb=5c198a737e21a72460f81e81a1b9405b5a591b60;p=gdcm.git diff --git a/src/gdcmDicomDirSerie.cxx b/src/gdcmDicomDirSerie.cxx index f3566ae0..146d1c06 100644 --- a/src/gdcmDicomDirSerie.cxx +++ b/src/gdcmDicomDirSerie.cxx @@ -1,5 +1,21 @@ -// gdcmDicomDirSerie.cxx -//----------------------------------------------------------------------------- +/*========================================================================= + + Program: gdcm + Module: $RCSfile: gdcmDicomDirSerie.cxx,v $ + Language: C++ + Date: $Date: 2004/08/01 00:59:21 $ + Version: $Revision: 1.12 $ + + Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de + l'Image). All rights reserved. See Doc/License.txt or + http://www.creatis.insa-lyon.fr/Public/Gdcm/License.htm for details. + + This software is distributed WITHOUT ANY WARRANTY; without even + the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the above copyright notices for more information. + +=========================================================================*/ + #include "gdcmDicomDirSerie.h" #include "gdcmDicomDirElement.h" #include "gdcmGlobal.h" @@ -32,7 +48,9 @@ gdcmDicomDirSerie::gdcmDicomDirSerie(TagDocEntryHT *ptagHT): */ gdcmDicomDirSerie::~gdcmDicomDirSerie() { - for(ListDicomDirImage::iterator cc = images.begin();cc != images.end();++cc) + for(ListDicomDirImage::iterator cc = images.begin(); + cc != images.end(); + ++cc) { delete *cc; } @@ -46,12 +64,14 @@ gdcmDicomDirSerie::~gdcmDicomDirSerie() */ void gdcmDicomDirSerie::Print(std::ostream &os) { - os<<"SERIE"<SetPrintLevel(printLevel); + (*cc)->SetPrintLevel(PrintLevel); (*cc)->Print(os); } } @@ -59,15 +79,17 @@ void gdcmDicomDirSerie::Print(std::ostream &os) //----------------------------------------------------------------------------- // Public /** - * \brief adds a new Image to a partially created DICOMDIR + * \brief adds a new Image (with the basic elements) to a partially created DICOMDIR */ -gdcmDicomDirImage * gdcmDicomDirSerie::NewImage(void) { - std::list elemList; - elemList=gdcmGlobal::GetDicomDirElements()->GetDicomDirImageElements(); - - gdcmDicomDirImage *st = new gdcmDicomDirImage(ptagHT); +gdcmDicomDirImage * gdcmDicomDirSerie::NewImage() +{ + std::list elemList = + gdcmGlobal::GetDicomDirElements()->GetDicomDirImageElements(); + + gdcmDicomDirImage *st = new gdcmDicomDirImage(PtagHT); FillObject(elemList); images.push_front(st); + return st; } //-----------------------------------------------------------------------------