+/*=========================================================================
+ 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 CLITKXDRIMAGEIO_H
#define CLITKXDRIMAGEIO_H
#define AVSerror(v) itkGenericExceptionMacro(<< "Error in clitk::XdrImageIO. Message:" << v);
#define AVSwarning(v) itkWarningMacro(<< "Error in clitk::XdrImageIO. Message:" << v);
+#include "clitkCommon.h"
+
namespace clitk {
//====================================================================
/*-------- This part of the interface deals with reading data. ------ */
virtual int ReadImageInformationWithError();
virtual int ReadWithError(void * buffer);
- virtual void ReadImageInformation();
- virtual void Read(void * buffer);
- virtual bool CanReadFile( const char* FileNameToRead );
+ virtual void ReadImageInformation() ITK_OVERRIDE;
+ virtual void Read(void * buffer) ITK_OVERRIDE;
+ virtual bool CanReadFile( const char* FileNameToRead ) 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* FileNameToWrite);
- virtual void Write(const void* buffer);
+ virtual void WriteImageInformation() ITK_OVERRIDE { WriteImageInformation(false); }
+ virtual bool CanWriteFile(const char* FileNameToWrite) ITK_OVERRIDE;
+ virtual void Write(const void* buffer) ITK_OVERRIDE;
protected:
void ITKError(std::string funcName, int msgID);
- void WriteImage(const char* file, char* headerinfo, char* headerfile, int raw,\r
- int offset, char bLittleEndian, int iNkiCompression,\r
- int wcoords, int append, int getsize, char *tobuffer, const void* data);\r
+ void WriteImage(const char* file, char* headerinfo, char* headerfile, int raw,
+ int offset, char bLittleEndian, int iNkiCompression,
+ int wcoords, int append, int getsize, char *tobuffer, const void* data);
int m_HeaderSize;
int forcenoswap;
} // end namespace
// explicit template instantiation
-template class itk::CreateObjectFunction<clitk::XdrImageIO>;
+//template class itk::CreateObjectFunction<clitk::XdrImageIO>;
#endif /* end #define CLITKXDRIMAGEIO_H */