X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmRLEFrame.h;h=b667116bdc9f0f013ea24614cca7cdda74bed8c5;hb=25a0000db08f39e6702b07f9936686efebf5277f;hp=e32a29f303c32f1de35287ad854f9f932edbe138;hpb=95dcce2c32665bcba9aa2d20c13390271a204e23;p=gdcm.git diff --git a/src/gdcmRLEFrame.h b/src/gdcmRLEFrame.h index e32a29f3..b667116b 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/01/31 06:17:22 $ - Version: $Revision: 1.14 $ + Date: $Date: 2005/11/28 17:24:21 $ + Version: $Revision: 1.19 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -20,9 +20,10 @@ #ifndef GDCMRLEFRAME_H #define GDCMRLEFRAME_H -#include "gdcmCommon.h" +#include "gdcmBase.h" #include +#include namespace gdcm { @@ -42,14 +43,17 @@ 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; }; - unsigned int GetNumberOfFragments() { return NumberOfFragments; }; + void SetNumberOfFragments(unsigned int number) + { NumberOfFragments = number; } + unsigned int GetNumberOfFragments() { return NumberOfFragments; } void SetOffset(unsigned int id, long offset); long GetOffset(unsigned int id); void SetLength(unsigned int id, long length); @@ -60,7 +64,7 @@ public: bool ReadAndDecompressRLEFragment( uint8_t *subRaw, long fragmentSize, long rawSegmentSize, std::ifstream *fp ); -private: +//private: unsigned int NumberOfFragments; long Offset[15]; long Length[15];