]> Creatis software - gdcm.git/blobdiff - src/gdcmDicomDirSerie.cxx
ENH: properly handle compiler that does not have __FUNCTION__
[gdcm.git] / src / gdcmDicomDirSerie.cxx
index dcdd74656a78e0f350188884afd29170573631da..2edbf5ea285b4d57c8636a6d6252de9f3dbb21b1 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirSerie.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/12/03 17:13:18 $
-  Version:   $Revision: 1.22 $
+  Date:      $Date: 2005/01/06 20:03:27 $
+  Version:   $Revision: 1.25 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -18,6 +18,7 @@
 
 #include "gdcmDicomDirSerie.h"
 #include "gdcmDicomDirElement.h"
+#include "gdcmDicomDirImage.h"
 #include "gdcmGlobal.h"
 
 namespace gdcm 
@@ -27,8 +28,6 @@ namespace gdcm
 // Constructor / Destructor
 /**
  * \brief  Constructor 
- * @param ptagHT pointer to the HTable (DicomDirObject needs it 
- *               to build the DocEntries)
  */
 DicomDirSerie::DicomDirSerie():
    DicomDirObject()
@@ -51,9 +50,9 @@ DicomDirSerie::~DicomDirSerie()
 // Print
 /**
  * \brief   Prints the Object
- * @return
+ * @param os ostream to write to
  */ 
-void DicomDirSerie::Print(std::ostreamos)
+void DicomDirSerie::Print(std::ostream &os)
 {
    os << "SERIE" << std::endl;
    DicomDirObject::Print(os);
@@ -72,9 +71,10 @@ void DicomDirSerie::Print(std::ostream& os)
 
 /**
  * \brief   Writes the Object
- * @return
+ * @param fp ofstream to write to
+ * @param t Type of the File (explicit VR, implicitVR, ...)
  */ 
-void DicomDirSerie::WriteContent(std::ofstreamfp, FileType t)
+void DicomDirSerie::WriteContent(std::ofstream *fp, FileType t)
 {
    DicomDirObject::WriteContent(fp, t);
 
@@ -89,12 +89,12 @@ void DicomDirSerie::WriteContent(std::ofstream* fp, FileType t)
 /**
  * \brief   adds a new Image (with the basic elements) to a partially created DICOMDIR
  */
-DicomDirImageDicomDirSerie::NewImage()
+DicomDirImage *DicomDirSerie::NewImage()
 {
-   ListDicomDirImageElem const & elemList = 
+   ListDicomDirImageElem const &elemList = 
       Global::GetDicomDirElements()->GetDicomDirImageElements();
 
-   DicomDirImagest = new DicomDirImage();
+   DicomDirImage *st = new DicomDirImage();
    FillObject(elemList);
    Images.push_front(st);