]> Creatis software - gdcm.git/blobdiff - src/gdcmDicomDirStudy.cxx
BUG: Remove tons of mem leaks. There are still plenty that explains why gdcm is dog...
[gdcm.git] / src / gdcmDicomDirStudy.cxx
index 24a15bca3b0962eaa9ecaec9beba173c68c98365..a9ebc4f8c3c26dec8ad8884d72c4d94bc9c6f7f7 100644 (file)
@@ -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<Element> elemList = 
+   ListDicomDirSerieElem const & elemList = 
       Global::GetDicomDirElements()->GetDicomDirSerieElements();   
 
    DicomDirSerie* st = new DicomDirSerie(PtagHT);
    FillObject(elemList);
-   series.push_front(st);
+   Series.push_front(st);
 
    return st;  
 }