]> Creatis software - gdcm.git/blobdiff - src/gdcmDicomDirStudy.cxx
remove useless comments
[gdcm.git] / src / gdcmDicomDirStudy.cxx
index 4075c91484ec1103b46cc5ebd6f5bda76155d718..5d30d595871454551076915352d5c77670fb76c6 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirStudy.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/01/28 17:01:29 $
-  Version:   $Revision: 1.33 $
+  Date:      $Date: 2005/02/02 10:02:16 $
+  Version:   $Revision: 1.36 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -30,8 +30,8 @@ namespace gdcm
  * \brief  Constructor 
  * \note End user must use : DicomDirPatient::NewStudy()
  */
-DicomDirStudy::DicomDirStudy(bool empty):
-   DicomDirObject()
+DicomDirStudy::DicomDirStudy(bool empty)
+              :DicomDirObject()
 {
    if( !empty )
    {
@@ -49,28 +49,6 @@ DicomDirStudy::~DicomDirStudy()
    ClearSerie();
 }
 
-//-----------------------------------------------------------------------------
-// Print
-/**
- * \brief   Prints the Object
- * @param os ostream to write to 
- * @param indent Indentation string to be prepended during printing
- * @return
- */ 
-void DicomDirStudy::Print(std::ostream &os, std::string const & )
-{
-   os << "STUDY" << std::endl;
-   DicomDirObject::Print(os);
-
-   for(ListDicomDirSerie::iterator cc = Series.begin();
-                                   cc != Series.end();
-                                   ++cc)
-   {
-      (*cc)->SetPrintLevel(PrintLevel);
-      (*cc)->Print(os);
-   }
-}
-
 //-----------------------------------------------------------------------------
 // Public
 /**
@@ -92,12 +70,12 @@ void DicomDirStudy::WriteContent(std::ofstream *fp, FileType t)
 }
 
 /**
- * \brief   adds a new Serie at the begining of the SerieList
+ * \brief   adds a new Serie at the beginning of the SerieList
  *          of a partially created DICOMDIR
  */
 DicomDirSerie *DicomDirStudy::NewSerie()
 {
-   DicomDirSeriest = new DicomDirSerie();
+   DicomDirSerie *st = new DicomDirSerie();
    Series.push_back(st);
    return st;
 } 
@@ -165,5 +143,26 @@ DicomDirSerie *DicomDirStudy::GetLastSerie()
 // Private
 
 //-----------------------------------------------------------------------------
-} // end namespace gdcm
+// Print
+/**
+ * \brief   Prints the Object
+ * @param os ostream to write to 
+ * @param indent Indentation string to be prepended during printing
+ * @return
+ */ 
+void DicomDirStudy::Print(std::ostream &os, std::string const & )
+{
+   os << "STUDY" << std::endl;
+   DicomDirObject::Print(os);
 
+   for(ListDicomDirSerie::iterator cc = Series.begin();
+                                   cc != Series.end();
+                                   ++cc)
+   {
+      (*cc)->SetPrintLevel(PrintLevel);
+      (*cc)->Print(os);
+   }
+}
+
+//-----------------------------------------------------------------------------
+} // end namespace gdcm