18#ifndef itkStreamingImageIOBase_h
19#define itkStreamingImageIOBase_h
20#include "ITKIOImageBaseExport.h"
169 return this->GetHeaderSize();
Abstract superclass defines image IO interface.
An ImageIORegion represents a structured region of data.
Control indentation during Print() invocation.
Light weight base class for most itk classes.
Base class for most ITK classes.
A base class for specific ImageIO file formats which support streaming.
virtual bool StreamReadBufferAsBinary(std::istream &file, void *_buffer)
Reads the set IORegion from os into buffer.
void PrintSelf(std::ostream &os, Indent indent) const override
virtual bool WriteBufferAsBinary(std::ostream &os, const void *buffer, SizeType num)
Reimplemented from super class to get around 2GB read/write limitation.
virtual bool StreamWriteBufferAsBinary(std::ostream &file, const void *_buffer)
Writes the set IORegion from buffer into os.
unsigned int GetActualNumberOfSplitsForWriting(unsigned int numberOfRequestedSplits, const ImageIORegion &pasteRegion, const ImageIORegion &largestPossibleRegion) override
bool CanStreamRead() override
virtual bool ReadBufferAsBinary(std::istream &is, void *buffer, SizeType num)
Reimplemented from superclass to get around 2GB read/write limitation.
ImageIORegion GenerateStreamableReadRegionFromRequestedRegion(const ImageIORegion &requestedRegion) const override
virtual bool RequestedToStream() const
Returns true if GetIORegion() is not the same size as the largest region give by GetNumberOfDimension...
virtual SizeType GetDataPosition() const
Returns the byte offset into the file where the data is located.
virtual SizeType GetHeaderSize() const =0
Returns the size of the header in the file.
bool CanStreamWrite() override
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....