X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmRLEFrame.h;h=f265b713aa4790cfd1d312e59f813a4494bb6be7;hb=c5cbf0eb33a0e937f5db6b95ce9570f1ec8acd1c;hp=cc1d40d7d609626a2fd3772229b5a3f812319aed;hpb=1e670813be403bc4ecd88fb78405d0a8969fca6c;p=gdcm.git diff --git a/src/gdcmRLEFrame.h b/src/gdcmRLEFrame.h index cc1d40d7..f265b713 100644 --- a/src/gdcmRLEFrame.h +++ b/src/gdcmRLEFrame.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmRLEFrame.h,v $ Language: C++ - Date: $Date: 2005/09/02 07:10:03 $ - Version: $Revision: 1.16 $ + Date: $Date: 2006/02/16 20:06:15 $ + Version: $Revision: 1.20 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -20,7 +20,7 @@ #ifndef GDCMRLEFRAME_H #define GDCMRLEFRAME_H -#include "gdcmCommon.h" +#include "gdcmBase.h" #include #include @@ -43,11 +43,13 @@ namespace gdcm * - the offsets of each segment of the frame, * - the (corresponding) lengths of each segment of the frame. */ -class GDCM_EXPORT RLEFrame +class GDCM_EXPORT RLEFrame : public Base { -public: +friend class File; +friend class RLEFramesInfo; +private: RLEFrame() { NumberOfFragments = 0; } - void Print( std::ostream &os = std::cout, std::string indent = "" ); + void Print( std::ostream &os = std::cout, std::string const &indent = "" ); void SetNumberOfFragments(unsigned int number) { NumberOfFragments = number; } @@ -62,7 +64,6 @@ public: bool ReadAndDecompressRLEFragment( uint8_t *subRaw, long fragmentSize, long rawSegmentSize, std::ifstream *fp ); -private: unsigned int NumberOfFragments; long Offset[15]; long Length[15];