X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=src%2FgdcmRLEFramesInfo.cxx;h=ba65b834c394c5b340d13358cd478e0c498be9b6;hb=1dd2c40c0da9098b444ad53b0e3c23da808997fa;hp=361f451aa1f1c208da259e29f59a5afe6feb4279;hpb=aaeee7164728ec0749a525f0c74274865712ec37;p=gdcm.git diff --git a/src/gdcmRLEFramesInfo.cxx b/src/gdcmRLEFramesInfo.cxx index 361f451a..ba65b834 100644 --- a/src/gdcmRLEFramesInfo.cxx +++ b/src/gdcmRLEFramesInfo.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmRLEFramesInfo.cxx,v $ Language: C++ - Date: $Date: 2005/01/24 16:10:53 $ - Version: $Revision: 1.5 $ + 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 { @@ -54,4 +55,27 @@ void RLEFramesInfo::Print( std::ostream &os, std::string indent ) } } +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