]> Creatis software - gdcm.git/blobdiff - src/gdcmDicomDirStudy.cxx
* VoidArea is now called BinArea (less confusing name),
[gdcm.git] / src / gdcmDicomDirStudy.cxx
index ca551f164b9b6a5b59b8837d6e6b43c261ce059d..cd3b07c60445c98d4b142c8ea5707e2f2b4bd6d9 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirStudy.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/08/01 00:59:21 $
-  Version:   $Revision: 1.8 $
+  Date:      $Date: 2004/08/26 15:29:52 $
+  Version:   $Revision: 1.10 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -65,7 +65,7 @@ gdcmDicomDirStudy::~gdcmDicomDirStudy()
  */ 
 void gdcmDicomDirStudy::Print(std::ostream &os)
 {
-   os<<"STUDY"<<std::endl;
+   os << "STUDY" << std::endl;
    gdcmObject::Print(os);
 
    for(ListDicomDirSerie::iterator cc = series.begin();
@@ -80,6 +80,20 @@ void gdcmDicomDirStudy::Print(std::ostream &os)
 //-----------------------------------------------------------------------------
 // Public
 
+/**
+ * \brief   Writes the Object
+ * @return
+ */ 
+void gdcmDicomDirStudy::Write(FILE *fp, FileType t)
+{
+   gdcmObject::Write(fp, t);
+
+   for(ListDicomDirSerie::iterator cc = series.begin();cc!=series.end();++cc)
+   {
+      (*cc)->Write( fp, t );
+   }
+}
+
 /**
  * \ingroup gdcmDicomStudy
  * \brief   adds a new Serie at the begining of the SerieList