1 /*=========================================================================
2 Program: vv http://www.creatis.insa-lyon.fr/rio/vv
5 - University of LYON http://www.universite-lyon.fr/
6 - Léon Bérard cancer center http://www.centreleonberard.fr
7 - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the copyright notices for more information.
13 It is distributed under dual licence
15 - BSD See included LICENSE.txt file
16 - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ===========================================================================**/
19 #ifndef __clitkEsrfHstImageIO_h
20 #define __clitkEsrfHstImageIO_h
22 #include <itkImageIOBase.h>
29 //====================================================================
30 // Class for reading Esrf Hst Image file format
31 class EsrfHstImageIO: public itk::ImageIOBase
34 /** Standard class typedefs. */
35 typedef EsrfHstImageIO Self;
36 typedef itk::ImageIOBase Superclass;
37 typedef itk::SmartPointer<Self> Pointer;
39 EsrfHstImageIO():Superclass() { }
41 /** Method for creation through the object factory. */
44 /** Run-time type information (and related methods). */
45 itkTypeMacro(EsrfHstImageIO, ImageIOBase);
47 /*-------- This part of the interface deals with reading data. ------ */
48 virtual void ReadImageInformation();
49 virtual bool CanReadFile( const char* FileNameToRead );
50 virtual void Read(void * buffer);
52 /*-------- This part of the interfaces deals with writing data. ----- */
53 virtual void WriteImageInformation(bool keepOfStream);
54 virtual void WriteImageInformation() { WriteImageInformation(false); }
55 virtual bool CanWriteFile(const char* filename);
56 virtual void Write(const void* buffer);
59 std::string m_XmlFileName;
60 std::string m_RawFileName;