]> Creatis software - gdcm.git/blobdiff - src/gdcmJpeg2000.cxx
* src/gdcmFile.cxx, gdcmDocument.cxx : fix the bug on the group|element
[gdcm.git] / src / gdcmJpeg2000.cxx
index 1869296c12b2813a6cba580afc21d719eef22c21..d2862fa9de6e4c9567e5d95e9ac69620384261a2 100644 (file)
@@ -1,11 +1,31 @@
-// gdcmJpeg2000.cxx
+/*=========================================================================
+                                                                                
+  Program:   gdcm
+  Module:    $RCSfile: gdcmJpeg2000.cxx,v $
+  Language:  C++
+  Date:      $Date: 2005/01/20 17:17:12 $
+  Version:   $Revision: 1.16 $
+                                                                                
+  Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
+  l'Image). All rights reserved. See Doc/License.txt or
+  http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
+                                                                                
+     This software is distributed WITHOUT ANY WARRANTY; without even
+     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+     PURPOSE.  See the above copyright notices for more information.
+                                                                                
+=========================================================================*/
 //-----------------------------------------------------------------------------
-#include <stdio.h>
-#include "gdcmFile.h"
+#include "gdcmFileHelper.h"
+
+#include <iostream>
+#include <fstream>
+
+namespace gdcm 
+{
 
 //-----------------------------------------------------------------------------
  /**
- * \ingroup gdcmFile
  * \brief   routine for JPEG decompression 
  * @param fp pointer to an already open file descriptor 
  *                      JPEG2000 encoded image
  * @warning : not yet made
  */
 
-bool gdcmFile::gdcm_read_JPEG2000_file (FILE *fp,void * image_buffer) {
+bool gdcm_read_JPEG2000_file (std::ifstream* fp,void* image_buffer) {
    (void)fp;                  //FIXME
    (void)image_buffer;        //FIXME
-   printf("Sorry JPEG 2000 File not yet taken into account\n");
+   std::cout << "Sorry JPEG 2000 File not yet taken into account" << std::endl;
    return false;
 }
+} // end namespace gdcm
 
 //-----------------------------------------------------------------------------