3#ifndef vtkResourceStream_h
4#define vtkResourceStream_h
6#include "vtkIOCoreModule.h"
12VTK_ABI_NAMESPACE_BEGIN
56 virtual std::size_t
Read(
void* buffer, std::size_t bytes) = 0;
92 virtual vtkTypeInt64
Tell();
116 std::unique_ptr<vtkInternals> Impl;
a simple class to control print indentation
abstract base class for most VTK objects
Abstract class used for custom streams.
vtkResourceStream(bool supportSeek)
Constructor.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual bool EndOfStream()=0
Check if the stream reached an end.
virtual vtkTypeInt64 Tell()
Get the stream cursor position.
vtkResourceStream & operator=(const vtkResourceStream &)=delete
bool SupportSeek() const
Check if stream supports Seek and Tell functions.
virtual vtkTypeInt64 Seek(vtkTypeInt64 pos, SeekDirection dir)
Move the stream cursor position.
vtkResourceStream(const vtkResourceStream &)=delete
~vtkResourceStream() override
virtual std::size_t Read(void *buffer, std::size_t bytes)=0
Read data form the stream.