X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDirStudy.cxx;h=a9ebc4f8c3c26dec8ad8884d72c4d94bc9c6f7f7;hb=5e64f1feb4d82a4da9893dca043212ac90807fe4;hp=24a15bca3b0962eaa9ecaec9beba173c68c98365;hpb=fea9426f960497d2d9124ab532d2097f2915678f;p=gdcm.git diff --git a/src/gdcmDicomDirStudy.cxx b/src/gdcmDicomDirStudy.cxx index 24a15bca..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/22 03:05:41 $ - Version: $Revision: 1.15 $ + 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); @@ -92,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 ); } @@ -105,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; }