X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmRLEFrame.cxx;h=7ed3a0a91b66f4bf1e67017a1bfce2375ba12561;hb=1fe405b2347a5f78d5ecc67d2d81f53bd9c7541d;hp=8ebb8f61d4619a69604b9da3705bfb30f0ac7c92;hpb=e8caac199c2683cb0f118c42c61dc6aec85b1eec;p=gdcm.git diff --git a/src/gdcmRLEFrame.cxx b/src/gdcmRLEFrame.cxx index 8ebb8f61..7ed3a0a9 100644 --- a/src/gdcmRLEFrame.cxx +++ b/src/gdcmRLEFrame.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmRLEFrame.cxx,v $ Language: C++ - Date: $Date: 2005/01/16 04:50:42 $ - Version: $Revision: 1.2 $ + Date: $Date: 2005/01/26 11:42:02 $ + Version: $Revision: 1.3 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -17,6 +17,7 @@ =========================================================================*/ #include "gdcmRLEFrame.h" +#include "gdcmDebug.h" namespace gdcm { @@ -40,5 +41,29 @@ void RLEFrame::Print( std::ostream &os, std::string indent ) } } +void RLEFrame::SetOffset(unsigned int id,long offset) +{ + gdcmAssertMacro(id<15); + Offset[id] = offset; +} + +long RLEFrame::GetOffset(unsigned int id) +{ + gdcmAssertMacro(id<15); + return Offset[id]; +} + +void RLEFrame::SetLength(unsigned int id,long length) +{ + gdcmAssertMacro(id<15); + Length[id] = length; +} + +long RLEFrame::GetLength(unsigned int id) +{ + gdcmAssertMacro(id<15); + return Length[id]; +} + } // end namespace gdcm