X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDirStudy.cxx;h=a9ebc4f8c3c26dec8ad8884d72c4d94bc9c6f7f7;hb=eae9a01c2edd9f615a78dc64a8e7731d09e815a1;hp=ea46883016c4c945d9cd54c1588ec25468278dcd;hpb=1d69b92978803204089d270599133917d944c651;p=gdcm.git diff --git a/src/gdcmDicomDirStudy.cxx b/src/gdcmDicomDirStudy.cxx index ea468830..a9ebc4f8 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/12 04:35:45 $ - Version: $Revision: 1.14 $ + Date: $Date: 2004/10/25 04:08:20 $ + Version: $Revision: 1.17 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -22,7 +22,6 @@ namespace gdcm { - //----------------------------------------------------------------------------- // Constructor / Destructor @@ -36,7 +35,7 @@ namespace gdcm DicomDirStudy::DicomDirStudy(SQItem* s, TagDocEntryHT* ptagHT): DicomDirObject(ptagHT) { - docEntries = s->GetDocEntries(); + DocEntries = s->GetDocEntries(); } /** * \ingroup DicomDirStudy @@ -54,7 +53,9 @@ DicomDirStudy::DicomDirStudy(TagDocEntryHT* ptagHT): */ DicomDirStudy::~DicomDirStudy() { - for(ListDicomDirSerie::iterator cc = series.begin();cc != series.end();++cc) + for(ListDicomDirSerie::iterator cc = Series.begin(); + cc != Series.end(); + ++cc ) { delete *cc; } @@ -72,8 +73,8 @@ void DicomDirStudy::Print(std::ostream& os) os << "STUDY" << std::endl; DicomDirObject::Print(os); - for(ListDicomDirSerie::iterator cc = series.begin(); - cc != series.end(); + for(ListDicomDirSerie::iterator cc = Series.begin(); + cc != Series.end(); ++cc) { (*cc)->SetPrintLevel(PrintLevel); @@ -88,11 +89,13 @@ void DicomDirStudy::Print(std::ostream& os) * \brief Writes the Object * @return */ -void DicomDirStudy::Write(FILE* fp, FileType t) +void DicomDirStudy::Write(std::ofstream* fp, FileType t) { DicomDirObject::Write(fp, t); - for(ListDicomDirSerie::iterator cc = series.begin();cc!=series.end();++cc) + for(ListDicomDirSerie::iterator cc = Series.begin(); + cc!= Series.end(); + ++cc ) { (*cc)->Write( fp, t ); } @@ -105,12 +108,12 @@ void DicomDirStudy::Write(FILE* fp, FileType t) */ DicomDirSerie* DicomDirStudy::NewSerie() { - std::list elemList = + ListDicomDirSerieElem const & elemList = Global::GetDicomDirElements()->GetDicomDirSerieElements(); DicomDirSerie* st = new DicomDirSerie(PtagHT); FillObject(elemList); - series.push_front(st); + Series.push_front(st); return st; }