]> Creatis software - gdcm.git/blob - src/gdcmRLEFrame.cxx
72d2a1c347eba172e0097b33ddaff1e3ef75789e
[gdcm.git] / src / gdcmRLEFrame.cxx
1 /*=========================================================================
2                                                                                 
3   Program:   gdcm
4   Module:    $RCSfile: gdcmRLEFrame.cxx,v $
5   Language:  C++
6   Date:      $Date: 2004/10/20 14:31:44 $
7   Version:   $Revision: 1.1 $
8                                                                                 
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.
12                                                                                 
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.
16                                                                                 
17 =========================================================================*/
18                                                                                 
19 #include "gdcmRLEFrame.h"
20                                                                                 
21 namespace gdcm
22 {
23
24 /**
25  * \brief        Print self.
26  * @param indent Indentation string to be prepended during printing.
27  * @param os     Stream to print to.
28  */
29 void RLEFrame::Print( std::string indent, std::ostream &os )
30 {
31    os << indent
32       << "--- fragments"
33       << std::endl;
34    for ( unsigned int i = 0; i < NumberFragments; i++ )
35    {
36       os << indent
37          << "   offset : " <<  Offset[i]
38          << "   length : " <<  Length[i]
39          << std::endl;
40    }
41 }
42
43 } // end namespace gdcm
44