]> Creatis software - clitk.git/blobdiff - common/clitkVoxImageIO.h
Comment snoutID
[clitk.git] / common / clitkVoxImageIO.h
index d4ffb6a6dff7099cf7156fbe88ff34ea38f72f2e..6a4f9246d68a69be9808703225e25dcce2acba7e 100644 (file)
@@ -1,6 +1,22 @@
+/*=========================================================================
+  Program:   vv                     http://www.creatis.insa-lyon.fr/rio/vv
+
+  Authors belong to: 
+  - University of LYON              http://www.universite-lyon.fr/
+  - Léon Bérard cancer center       http://www.centreleonberard.fr
+  - CREATIS CNRS laboratory         http://www.creatis.insa-lyon.fr
+
+  This software is distributed WITHOUT ANY WARRANTY; without even
+  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+  PURPOSE.  See the copyright notices for more information.
+
+  It is distributed under dual licence
+
+  - BSD        See included LICENSE.txt file
+  - CeCILL-B   http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+===========================================================================**/
 #ifndef CLITKVOXIMAGEIO_H
 #define CLITKVOXIMAGEIO_H
-
 /**
  ===================================================================
  * @file   clitkVoxImageIO.h
@@ -17,6 +33,9 @@
 // itk include
 #include "itkImageIOBase.h"
 
+// std include
+#include <fstream>
+
 namespace clitk {
   
   //====================================================================
@@ -39,15 +58,15 @@ namespace clitk {
        itkTypeMacro(VoxImageIO, ImageIOBase);
        
        /*-------- This part of the interface deals with reading data. ------ */
-       virtual void ReadImageInformation();
-       virtual bool CanReadFile( const char* FileNameToRead );
-       virtual void Read(void * buffer);
+       virtual void ReadImageInformation() ITK_OVERRIDE;
+       virtual bool CanReadFile( const char* FileNameToRead ) ITK_OVERRIDE;
+       virtual void Read(void * buffer) ITK_OVERRIDE;
 
        /*-------- This part of the interfaces deals with writing data. ----- */
        virtual void WriteImageInformation(bool keepOfStream);
-       virtual void WriteImageInformation() { WriteImageInformation(false); }
-       virtual bool CanWriteFile(const char* filename);
-       virtual void Write(const void* buffer);
+       virtual void WriteImageInformation() ITK_OVERRIDE { WriteImageInformation(false); }
+       virtual bool CanWriteFile(const char* filename) ITK_OVERRIDE;
+       virtual void Write(const void* buffer) ITK_OVERRIDE;
        
   protected:
        bool mustWriteHeader;
@@ -59,7 +78,7 @@ namespace clitk {
 } // end namespace
 
   // explicit template instantiation
-template class itk::CreateObjectFunction<clitk::VoxImageIO>;
+//template class itk::CreateObjectFunction<clitk::VoxImageIO>;
 
 #endif /* end #define CLITKVOXIMAGEIO_H */