1 /*=========================================================================
4 Module: $RCSfile: gdcmRLEFramesInfo.cxx,v $
6 Date: $Date: 2005/01/28 15:42:22 $
7 Version: $Revision: 1.7 $
9 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10 l'Image). All rights reserved. See Doc/License.txt or
11 http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notices for more information.
17 =========================================================================*/
19 #include "gdcmRLEFramesInfo.h"
20 #include "gdcmDebug.h"
25 RLEFramesInfo::~RLEFramesInfo()
27 for(RLEFrameList::iterator it = Frames.begin(); it != Frames.end(); ++it)
36 * @param indent Indentation string to be prepended during printing.
37 * @param os Stream to print to.
39 void RLEFramesInfo::Print( std::ostream &os, std::string indent )
43 << "----------------- RLE frames --------------------------------"
46 << "Total number of Frames : " << Frames.size()
49 for(RLEFrameList::iterator it = Frames.begin(); it != Frames.end(); ++it)
52 << " frame number :" << frameNumber++
54 (*it)->Print( os, indent + " " );
58 void RLEFramesInfo::AddFrame(RLEFrame *frame)
60 Frames.push_back(frame);
63 RLEFrame *RLEFramesInfo::GetFirstFrame()
65 ItFrames = Frames.begin();
66 if (ItFrames != Frames.end())
71 RLEFrame *RLEFramesInfo::GetNexttFrame()
73 gdcmAssertMacro (ItFrames != Frames.end());
76 if (ItFrames != Frames.end())
81 } // end namespace gdcm