Program: gdcm
Module: $RCSfile: gdcmRLEFrame.h,v $
Language: C++
- Date: $Date: 2005/09/02 07:10:03 $
- Version: $Revision: 1.16 $
+ Date: $Date: 2007/08/22 16:14:04 $
+ Version: $Revision: 1.22 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
=========================================================================*/
-#ifndef GDCMRLEFRAME_H
-#define GDCMRLEFRAME_H
+#ifndef _GDCMRLEFRAME_H_
+#define _GDCMRLEFRAME_H_
-#include "gdcmCommon.h"
+#include "gdcmBase.h"
#include <iostream>
#include <fstream>
-namespace gdcm
+namespace GDCM_NAME_SPACE
{
/**
* \brief Utility class for summerizing the informations of a SINGLE RLE
* - 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; }
bool ReadAndDecompressRLEFragment( uint8_t *subRaw, long fragmentSize,
long rawSegmentSize, std::ifstream *fp );
-private:
unsigned int NumberOfFragments;
long Offset[15];
long Length[15];