X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDirStudy.cxx;h=c46781322f556117bc0c6150cb5b5c5a64352f4c;hb=57514b6da5b0ee3a9a1c37a15ccde6f5e1ae1688;hp=a9ebc4f8c3c26dec8ad8884d72c4d94bc9c6f7f7;hpb=7b3410ee413b056e0e599a4800ea836c8b56152b;p=gdcm.git diff --git a/src/gdcmDicomDirStudy.cxx b/src/gdcmDicomDirStudy.cxx index a9ebc4f8..c4678132 100644 --- a/src/gdcmDicomDirStudy.cxx +++ b/src/gdcmDicomDirStudy.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDicomDirStudy.cxx,v $ Language: C++ - Date: $Date: 2004/10/25 04:08:20 $ - Version: $Revision: 1.17 $ + Date: $Date: 2004/12/03 20:16:57 $ + Version: $Revision: 1.20 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -19,32 +19,20 @@ #include "gdcmDicomDirStudy.h" #include "gdcmDicomDirElement.h" #include "gdcmGlobal.h" +#include "gdcmDicomDirSerie.h" namespace gdcm { //----------------------------------------------------------------------------- // Constructor / Destructor - -/** - * \ingroup DicomDirStudy - * \brief constructor - * @param s SQ Item holding the elements related to this "STUDY" part - * @param ptagHT pointer to the HTable (DicomDirObject needs it - * to build the HeaderEntries) - */ -DicomDirStudy::DicomDirStudy(SQItem* s, TagDocEntryHT* ptagHT): - DicomDirObject(ptagHT) -{ - DocEntries = s->GetDocEntries(); -} /** * \ingroup DicomDirStudy * \brief constructor * @param ptagHT pointer to the HTable (DicomDirObject needs it * to build the HeaderEntries) */ -DicomDirStudy::DicomDirStudy(TagDocEntryHT* ptagHT): - DicomDirObject(ptagHT) +DicomDirStudy::DicomDirStudy(): + DicomDirObject() { } /** @@ -89,15 +77,15 @@ void DicomDirStudy::Print(std::ostream& os) * \brief Writes the Object * @return */ -void DicomDirStudy::Write(std::ofstream* fp, FileType t) +void DicomDirStudy::WriteContent(std::ofstream* fp, FileType t) { - DicomDirObject::Write(fp, t); + DicomDirObject::WriteContent(fp, t); for(ListDicomDirSerie::iterator cc = Series.begin(); cc!= Series.end(); ++cc ) { - (*cc)->Write( fp, t ); + (*cc)->WriteContent( fp, t ); } } @@ -111,7 +99,7 @@ DicomDirSerie* DicomDirStudy::NewSerie() ListDicomDirSerieElem const & elemList = Global::GetDicomDirElements()->GetDicomDirSerieElements(); - DicomDirSerie* st = new DicomDirSerie(PtagHT); + DicomDirSerie* st = new DicomDirSerie(); FillObject(elemList); Series.push_front(st);