X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDirSerie.cxx;h=0b62c553ac2e0b3adc0bb2fecc9e3be63b3afd4a;hb=bbd2c8850b3f5a5fdb7eee594cff44b4d3729bd7;hp=0c0caf0f0bec0bbad261d072495c101e05bce8e9;hpb=eb835becc89cc1b8a1dc1f122f54b7659a6127be;p=gdcm.git diff --git a/src/gdcmDicomDirSerie.cxx b/src/gdcmDicomDirSerie.cxx index 0c0caf0f..0b62c553 100644 --- a/src/gdcmDicomDirSerie.cxx +++ b/src/gdcmDicomDirSerie.cxx @@ -1,34 +1,49 @@ -// gdcmDicomDirSerie.cxx -//----------------------------------------------------------------------------- +/*========================================================================= + + Program: gdcm + Module: $RCSfile: gdcmDicomDirSerie.cxx,v $ + Language: C++ + Date: $Date: 2004/07/21 14:02:10 $ + Version: $Revision: 1.11 $ + + 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 "gdcmUtil.h" +#include "gdcmGlobal.h" + //----------------------------------------------------------------------------- // Constructor / Destructor /** - * \ingroup gdcmDicomDirSerie * \brief Constructor - * @param begin iterator (inside the gdcmParser chained list) - * on the first Header Entry (i.e Dicom Element) - * related to this "SERIE" part - * @param end iterator (inside the gdcmParser chained list) - * on the last Header Entry (i.e Dicom Element) - * related to this 'SERIE' part + * @param s SQ Item holding the elements related to this "SERIE" part * @param ptagHT pointer to the HTable (gdcmObject needs it - * to build the gdcmHeaderEntries) - * @param plistEntries pointer to the chained List (gdcmObject needs it - * to build the gdcmHeaderEntries) + * to build the gdcmDocEntries) */ -gdcmDicomDirSerie::gdcmDicomDirSerie(ListTag::iterator begin, - ListTag::iterator end, - TagHeaderEntryHT *ptagHT, - ListTag *plistEntries ): - gdcmObject(begin,end,ptagHT,plistEntries) +gdcmDicomDirSerie::gdcmDicomDirSerie(gdcmSQItem *s, TagDocEntryHT *ptagHT): + gdcmObject(ptagHT) { + docEntries = s->GetDocEntries(); } /** - * \ingroup gdcmDicomDirSerie + * \brief Constructor + * @param ptagHT pointer to the HTable (gdcmObject needs it + * to build the gdcmDocEntries) + */ +gdcmDicomDirSerie::gdcmDicomDirSerie(TagDocEntryHT *ptagHT): + gdcmObject(ptagHT) +{ +} +/** * \brief Canonical destructor. */ gdcmDicomDirSerie::~gdcmDicomDirSerie() @@ -42,7 +57,6 @@ gdcmDicomDirSerie::~gdcmDicomDirSerie() //----------------------------------------------------------------------------- // Print /** - * \ingroup gdcmDicomDirSerie * \brief Prints the Object * @return */ @@ -60,16 +74,15 @@ void gdcmDicomDirSerie::Print(std::ostream &os) //----------------------------------------------------------------------------- // Public -/* - * \ingroup gdcmDicomSerie - * \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); FillObject(elemList); - gdcmDicomDirImage *st = new gdcmDicomDirImage(i, j, ptagHT, plistEntries); images.push_front(st); return st; }