X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDirSerie.cxx;h=2edbf5ea285b4d57c8636a6d6252de9f3dbb21b1;hb=d72e3cb0326093093f99863964f8f4df382c83e1;hp=9a0a991d68848afc01399f3fda792a87ceea9df5;hpb=7b3410ee413b056e0e599a4800ea836c8b56152b;p=gdcm.git diff --git a/src/gdcmDicomDirSerie.cxx b/src/gdcmDicomDirSerie.cxx index 9a0a991d..2edbf5ea 100644 --- a/src/gdcmDicomDirSerie.cxx +++ b/src/gdcmDicomDirSerie.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDicomDirSerie.cxx,v $ Language: C++ - Date: $Date: 2004/10/25 04:08:20 $ - Version: $Revision: 1.20 $ + Date: $Date: 2005/01/06 20:03:27 $ + Version: $Revision: 1.25 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -18,6 +18,7 @@ #include "gdcmDicomDirSerie.h" #include "gdcmDicomDirElement.h" +#include "gdcmDicomDirImage.h" #include "gdcmGlobal.h" namespace gdcm @@ -27,23 +28,9 @@ namespace gdcm // Constructor / Destructor /** * \brief Constructor - * @param s SQ Item holding the elements related to this "SERIE" part - * @param ptagHT pointer to the HTable (DicomDirObject needs it - * to build the DocEntries) */ -DicomDirSerie::DicomDirSerie(SQItem* s, TagDocEntryHT* ptagHT) : - DicomDirObject(ptagHT) -{ - DocEntries = s->GetDocEntries(); -} - -/** - * \brief Constructor - * @param ptagHT pointer to the HTable (DicomDirObject needs it - * to build the DocEntries) - */ -DicomDirSerie::DicomDirSerie(TagDocEntryHT* ptagHT): - DicomDirObject(ptagHT) +DicomDirSerie::DicomDirSerie(): + DicomDirObject() { } /** @@ -63,9 +50,9 @@ DicomDirSerie::~DicomDirSerie() // Print /** * \brief Prints the Object - * @return + * @param os ostream to write to */ -void DicomDirSerie::Print(std::ostream& os) +void DicomDirSerie::Print(std::ostream &os) { os << "SERIE" << std::endl; DicomDirObject::Print(os); @@ -84,29 +71,30 @@ void DicomDirSerie::Print(std::ostream& os) /** * \brief Writes the Object - * @return + * @param fp ofstream to write to + * @param t Type of the File (explicit VR, implicitVR, ...) */ -void DicomDirSerie::Write(std::ofstream* fp, FileType t) +void DicomDirSerie::WriteContent(std::ofstream *fp, FileType t) { - DicomDirObject::Write(fp, t); + DicomDirObject::WriteContent(fp, t); for(ListDicomDirImage::iterator cc = Images.begin(); cc!= Images.end(); ++cc ) { - (*cc)->Write( fp, t ); + (*cc)->WriteContent( fp, t ); } } /** * \brief adds a new Image (with the basic elements) to a partially created DICOMDIR */ -DicomDirImage* DicomDirSerie::NewImage() +DicomDirImage *DicomDirSerie::NewImage() { - ListDicomDirImageElem const & elemList = + ListDicomDirImageElem const &elemList = Global::GetDicomDirElements()->GetDicomDirImageElements(); - DicomDirImage* st = new DicomDirImage(PtagHT); + DicomDirImage *st = new DicomDirImage(); FillObject(elemList); Images.push_front(st);