#define CLITKGATEASCIIIMAGEIO_H
// itk include
-#include "itkImageIOBase.h"
+#include <itkImageIOBase.h>
+#include <itksys/RegularExpression.hxx>
#if defined (_MSC_VER) && (_MSC_VER < 1600)
//SR: taken from
virtual void Read(void * buffer);
/*-------- This part of the interfaces deals with writing data. ----- */
- virtual void WriteImageInformation(bool keepOfStream) { ; }
- virtual void WriteImageInformation() { WriteImageInformation(false); }
+ virtual void WriteImageInformation();
virtual bool CanWriteFile(const char* filename);
virtual void Write(const void* buffer);
+ virtual bool SupportsDimension(unsigned long dim);
+
protected:
- int m_HeaderSize;
+ static bool ReadHeader(FILE* handle, GateAsciiHeader& header);
+ static bool ReadLine(FILE* handle, std::string& line);
+ static bool FindRegularExpressionNextLine(itksys::RegularExpression ®, std::string &s, FILE* handle);
}; // end class GateAsciiImageIO
} // end namespace