10 #include <vxl_config.h> 11 #include <vcl_atomic_count.h> 15 #else //VXL_HAS_INT_64 17 #endif //VXL_HAS_INT_64 25 virtual bool ok()
const = 0;
57 #endif // vil_stream_h_ virtual vil_streampos tell() const =0
Return file pointer.
vcl_atomic_count refcount_
virtual vil_streampos write(void const *buf, vil_streampos n)=0
Write n bytes from buf. Returns number of bytes written.
virtual void seek(vil_streampos position)=0
Goto file pointer.
virtual vil_streampos read(void *buf, vil_streampos n)=0
Read n bytes into buf. Returns number of bytes read.
Stream interface for VIL image loaders.
void ref()
up/down the reference count.
virtual bool ok() const =0
Return false if the stream is broken.
virtual vil_streampos file_size() const =0
Amount of data in the stream.