X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmRLEFrame.h;h=bffdbea862b38e34eaf0c2c1187b6827949be4ce;hb=bdbcc9f17fe73967e766505c1a978429bf66431a;hp=3f288ecfc83ce7b4f03b78fde1d196dc55532901;hpb=67845c7dc1241480f5c5fcfa0cfc2e86918dad1e;p=gdcm.git diff --git a/src/gdcmRLEFrame.h b/src/gdcmRLEFrame.h index 3f288ecf..bffdbea8 100644 --- a/src/gdcmRLEFrame.h +++ b/src/gdcmRLEFrame.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmRLEFrame.h,v $ Language: C++ - Date: $Date: 2004/10/08 16:27:20 $ - Version: $Revision: 1.4 $ + Date: $Date: 2005/01/16 04:50:42 $ + Version: $Revision: 1.11 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -22,6 +22,10 @@ #include "gdcmCommon.h" +#include + +namespace gdcm +{ /** * \brief Utility class for summerizing the informations of a SINGLE RLE * frame of an "Encapsulated RLE Compressed Image" (refer to @@ -32,23 +36,24 @@ * both the above RLE Header and the itemlength of the frame). * * Each instance of this class (they can be as many instances for - * a given gdcmDocument as they are frames and they are collected in - * a \ref gdcmRLEFramesInfo ) describes : + * a given Document as they are frames and they are collected in + * a \ref RLEFramesInfo ) describes : * - the total number of segments (up to 15), * - the offsets of each segment of the frame, * - the (corresponding) lengths of each segment of the frame. */ -class GDCM_EXPORT gdcmRLEFrame +class GDCM_EXPORT RLEFrame { -friend class gdcmDocument; -friend class gdcmFile; -friend class gdcmPixelConvert; - int NumberFragments; +friend class Document; +friend class PixelReadConvert; + unsigned int NumberFragments; long Offset[15]; long Length[15]; - gdcmRLEFrame() { NumberFragments = 0; } +public: + RLEFrame() { NumberFragments = 0; } + void Print( std::ostream &os = std::cout, std::string indent = "" ); }; - +} // end namespace gdcm //----------------------------------------------------------------------------- #endif