]> Creatis software - gdcm.git/blobdiff - src/gdcmDicomDirSerie.cxx
Sometimes, fixing a bug in the library causes troubles in the Testing part...
[gdcm.git] / src / gdcmDicomDirSerie.cxx
index 1b5dbd12291e134f38eec4d752dc3d47d91b7a88..97bd2594c4dc1112dc9981896ebddec581498f70 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDirSerie.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/03/23 15:30:15 $
-  Version:   $Revision: 1.41 $
+  Date:      $Date: 2007/05/23 14:18:08 $
+  Version:   $Revision: 1.43 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -23,7 +23,7 @@
 #include "gdcmGlobal.h"
 #include "gdcmDebug.h"
 
-namespace gdcm 
+namespace GDCM_NAME_SPACE 
 {
 //-----------------------------------------------------------------------------
 // Constructor / Destructor
@@ -88,7 +88,19 @@ DicomDirImage *DicomDirSerie::NewImage()
 }
 
 /**
- * \brief  Remove all 'Images' in the serie 
+ * \brief   adds a new Private (with the basic elements) to a partially created 
+ *          DICOMDIR
+ */
+DicomDirPrivate *DicomDirSerie::NewPrivate()
+{
+   DicomDirPrivate *dd = DicomDirPrivate::New();
+   Privates.push_back(dd);
+   return dd;   
+}
+
+/**
+ * \brief  Remove all 'Privates'  in the serie 
  */
 void DicomDirSerie::ClearPrivate()
 {
@@ -101,9 +113,8 @@ void DicomDirSerie::ClearPrivate()
    Privates.clear();
 }
 
-
 /**
- * \brief  Remove all 'Privates' in the serie 
+ * \brief  Remove all 'Images' in the serie 
  */
 void DicomDirSerie::ClearImage()
 {
@@ -115,6 +126,7 @@ void DicomDirSerie::ClearImage()
    }
    Images.clear();
 }
+
 /**
  * \brief   Get the first entry while visiting the DicomDirImage
  * \return  The first DicomDirImage if DicomDirserie not empty, otherwhise NULL