1 /*=========================================================================
4 Module: $RCSfile: gdcmRLEFrame.cxx,v $
6 Date: $Date: 2005/01/26 11:42:02 $
7 Version: $Revision: 1.3 $
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 "gdcmRLEFrame.h"
20 #include "gdcmDebug.h"
27 * @param indent Indentation string to be prepended during printing.
28 * @param os Stream to print to.
30 void RLEFrame::Print( std::ostream &os, std::string indent )
35 for ( unsigned int i = 0; i < NumberFragments; i++ )
38 << " offset : " << Offset[i]
39 << " length : " << Length[i]
44 void RLEFrame::SetOffset(unsigned int id,long offset)
46 gdcmAssertMacro(id<15);
50 long RLEFrame::GetOffset(unsigned int id)
52 gdcmAssertMacro(id<15);
56 void RLEFrame::SetLength(unsigned int id,long length)
58 gdcmAssertMacro(id<15);
62 long RLEFrame::GetLength(unsigned int id)
64 gdcmAssertMacro(id<15);
68 } // end namespace gdcm