X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDirStudy.cxx;h=a9ebc4f8c3c26dec8ad8884d72c4d94bc9c6f7f7;hb=eae9a01c2edd9f615a78dc64a8e7731d09e815a1;hp=d035f1ab1e0935d7f8c8fd3b716b2005d3b66168;hpb=8a3dd7efbcb545e7ed308eb7334b1e6dbbf40923;p=gdcm.git diff --git a/src/gdcmDicomDirStudy.cxx b/src/gdcmDicomDirStudy.cxx index d035f1ab..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/25 03:35:19 $ - Version: $Revision: 1.16 $ + 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 @@ -53,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; } @@ -71,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); @@ -91,7 +93,9 @@ 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 ); } @@ -104,12 +108,12 @@ void DicomDirStudy::Write(std::ofstream* 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; }