1 /*=========================================================================
4 Module: $RCSfile: gdcmRLEFramesInfo.cxx,v $
6 Date: $Date: 2005/01/26 16:28:58 $
7 Version: $Revision: 1.6 $
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"
24 RLEFramesInfo::~RLEFramesInfo()
26 for(RLEFrameList::iterator it = Frames.begin(); it != Frames.end(); ++it)
35 * @param indent Indentation string to be prepended during printing.
36 * @param os Stream to print to.
38 void RLEFramesInfo::Print( std::ostream &os, std::string indent )
42 << "----------------- RLE frames --------------------------------"
45 << "Total number of Frames : " << Frames.size()
48 for(RLEFrameList::iterator it = Frames.begin(); it != Frames.end(); ++it)
51 << " frame number :" << frameNumber++
53 (*it)->Print( os, indent + " " );
57 void RLEFramesInfo::AddFrame(RLEFrame *frame)
59 Frames.push_back(frame);
62 } // end namespace gdcm