]> Creatis software - gdcm.git/blobdiff - src/gdcmJPEGFragment.h
BUG: There was some duplicated code I didnt see. This fix D.Clunie problem I was...
[gdcm.git] / src / gdcmJPEGFragment.h
index b8e8ff0b786464de335449537134bf3fdb644fd7..a446d9c77f098befd64f4d4c5ec586658183f63f 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmJPEGFragment.h,v $
   Language:  C++
-  Date:      $Date: 2004/10/12 04:35:46 $
-  Version:   $Revision: 1.2 $
+  Date:      $Date: 2004/12/03 20:16:58 $
+  Version:   $Revision: 1.6 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -21,6 +21,9 @@
 #define GDCMJPEGFRAGMENT_H
 
 #include "gdcmCommon.h"
+
+#include <iostream>
+
 namespace gdcm 
 {
 
@@ -37,16 +40,17 @@ namespace gdcm
  */
 class GDCM_EXPORT JPEGFragment
 {
-friend class Document;
-friend class File;
-friend class PixelConvert;
+public:
+   JPEGFragment();
+   void Print( std::string indent = "", std::ostream &os = std::cout );
+
+private:
    long    Offset;
    long    Length;
-   JPEGFragment()
-   {
-      Offset = 0;
-      Length = 0;
-   }
+
+friend class Document;
+friend class File;
+friend class PixelReadConvert;
 };
 } // end namespace gdcm