1 /*=========================================================================
4 Module: $RCSfile: gdcmJPEGFragmentsInfo.cxx,v $
6 Date: $Date: 2004/10/28 22:21:57 $
7 Version: $Revision: 1.4 $
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 "gdcmJPEGFragmentsInfo.h"
25 * \brief Default destructor
27 JPEGFragmentsInfo::~JPEGFragmentsInfo()
29 for(JPEGFragmentsList::iterator it = Fragments.begin();
30 it != Fragments.end();
40 * @param indent Indentation string to be prepended during printing.
41 * @param os Stream to print to.
43 void JPEGFragmentsInfo::Print( std::string indent, std::ostream &os )
46 << "----------------- JPEG fragments --------------------------------"
49 << "Total number of fragments : " << Fragments.size()
51 int fragmentNumber = 0;
52 for(JPEGFragmentsList::iterator it = Fragments.begin();
53 it != Fragments.end();
57 << " fragment number :" << fragmentNumber++;
58 (*it)->Print( indent + " ", os );
64 } // end namespace gdcm