]> Creatis software - gdcm.git/blobdiff - src/gdcmRLEFramesInfo.cxx
* Remove friend between PixelReadConverter and RLEFramesInfo,
[gdcm.git] / src / gdcmRLEFramesInfo.cxx
index c79bc22ae73a2160e84f94a4484dc778c4fe210c..ba65b834c394c5b340d13358cd478e0c498be9b6 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmRLEFramesInfo.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/01/26 16:28:58 $
-  Version:   $Revision: 1.6 $
+  Date:      $Date: 2005/01/28 15:42:22 $
+  Version:   $Revision: 1.7 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -17,6 +17,7 @@
 =========================================================================*/
 
 #include "gdcmRLEFramesInfo.h"
+#include "gdcmDebug.h"
 
 namespace gdcm 
 {
@@ -59,4 +60,22 @@ void RLEFramesInfo::AddFrame(RLEFrame *frame)
    Frames.push_back(frame);
 }
 
+RLEFrame *RLEFramesInfo::GetFirstFrame()
+{
+   ItFrames = Frames.begin();
+   if (ItFrames != Frames.end())
+      return  *ItFrames;
+   return NULL;
+}
+
+RLEFrame *RLEFramesInfo::GetNexttFrame()
+{
+   gdcmAssertMacro (ItFrames != Frames.end());
+
+   ++ItFrames;
+   if (ItFrames != Frames.end())
+      return  *ItFrames;
+   return NULL;
+}
+
 } // end namespace gdcm