#include <vil_stream.h>
Inheritance diagram for vil_stream:

This allows the loaders to be used with any type of stream.
Definition at line 22 of file vil_stream.h.
Public Member Functions | |
| virtual bool | ok () const =0 |
| Return false if the stream is broken. | |
| virtual vil_streampos | write (void const *buf, vil_streampos n)=0 |
| Write n bytes from buf. Returns number of bytes written. | |
| virtual vil_streampos | read (void *buf, vil_streampos n)=0 |
| Read n bytes into buf. Returns number of bytes read. | |
| virtual vil_streampos | tell () const =0 |
| Return file pointer. | |
| virtual void | seek (vil_streampos position)=0 |
| Goto file pointer. | |
| virtual vil_streampos | file_size () const =0 |
| Amount of data in the stream. | |
| void | ref () |
| up/down the reference count. | |
| void | unref () |
Protected Member Functions | |
| vil_stream () | |
| virtual | ~vil_stream () |
Private Attributes | |
| int | refcount_ |
|
|
Definition at line 15 of file vil_stream.cxx. |
|
|
Definition at line 23 of file vil_stream.cxx. |
|
|
Amount of data in the stream.
Implemented in vil_stream_core, vil_stream_fstream, vil_stream_section, and vil_stream_url. |
|
|
Return false if the stream is broken.
Implemented in vil_stream_core, vil_stream_fstream, vil_stream_section, and vil_stream_url. |
|
||||||||||||
|
Read n bytes into buf. Returns number of bytes read. The return value is less than n only at eof. Implemented in vil_stream_core, vil_stream_fstream, vil_stream_section, and vil_stream_url. |
|
|
up/down the reference count.
Definition at line 46 of file vil_stream.h. |
|
|
Goto file pointer.
Implemented in vil_stream_core, vil_stream_fstream, vil_stream_section, and vil_stream_url. |
|
|
Return file pointer.
Implemented in vil_stream_core, vil_stream_fstream, vil_stream_section, and vil_stream_url. |
|
|
Definition at line 31 of file vil_stream.cxx. |
|
||||||||||||
|
Write n bytes from buf. Returns number of bytes written. The return value is less than n only in case of device failure. Implemented in vil_stream_core, vil_stream_fstream, vil_stream_section, and vil_stream_url. |
|
|
Definition at line 55 of file vil_stream.h. |
1.4.4