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

Definition at line 22 of file vil_stream_fstream.h.
Public Member Functions | |
| vil_stream_fstream (char const *filename, char const *mode) | |
| bool | ok () const |
| Return false if the stream is broken. | |
| vil_streampos | write (void const *buf, vil_streampos n) |
| Write n bytes from buf. Returns number of bytes written. | |
| vil_streampos | read (void *buf, vil_streampos n) |
| Read n bytes into buf. Returns number of bytes read. | |
| vil_streampos | tell () const |
| Return file pointer. | |
| void | seek (vil_streampos position) |
| Goto file pointer. | |
| vil_streampos | file_size () const |
| Amount of data in the stream. | |
| void | ref () |
| up/down the reference count. | |
| void | unref () |
Protected Member Functions | |
| ~vil_stream_fstream () | |
| vcl_fstream & | underlying_stream () |
Private Attributes | |
| vcl_ios_openmode | flags_ |
| vcl_fstream | f_ |
| int | id_ |
| vil_streampos | end_ |
| vil_stream_fstream::vil_stream_fstream | ( | char const * | filename, | |
| char const * | mode | |||
| ) |
Definition at line 39 of file vil_stream_fstream.cxx.
| vil_stream_fstream::~vil_stream_fstream | ( | ) | [protected] |
Definition at line 61 of file vil_stream_fstream.cxx.
| bool vil_stream_fstream::ok | ( | ) | const [inline, virtual] |
Return false if the stream is broken.
Implements vil_stream.
Definition at line 28 of file vil_stream_fstream.h.
| vil_streampos vil_stream_fstream::write | ( | void const * | buf, | |
| vil_streampos | n | |||
| ) | [virtual] |
Write n bytes from buf. Returns number of bytes written.
The return value is less than n only in case of device failure.
Implements vil_stream.
Definition at line 66 of file vil_stream_fstream.cxx.
| vil_streampos vil_stream_fstream::read | ( | void * | buf, | |
| vil_streampos | n | |||
| ) | [virtual] |
Read n bytes into buf. Returns number of bytes read.
The return value is less than n only at eof.
Implements vil_stream.
Definition at line 92 of file vil_stream_fstream.cxx.
| vil_streampos vil_stream_fstream::tell | ( | ) | const [virtual] |
| void vil_stream_fstream::seek | ( | vil_streampos | position | ) | [virtual] |
| vil_streampos vil_stream_fstream::file_size | ( | ) | const [virtual] |
Amount of data in the stream.
Implements vil_stream.
Definition at line 188 of file vil_stream_fstream.cxx.
| vcl_fstream& vil_stream_fstream::underlying_stream | ( | ) | [inline, protected] |
Definition at line 40 of file vil_stream_fstream.h.
| void vil_stream::ref | ( | ) | [inline, inherited] |
| void vil_stream::unref | ( | ) | [inherited] |
Definition at line 31 of file vil_stream.cxx.
vcl_ios_openmode vil_stream_fstream::flags_ [private] |
Definition at line 42 of file vil_stream_fstream.h.
vcl_fstream vil_stream_fstream::f_ [mutable, private] |
Definition at line 43 of file vil_stream_fstream.h.
int vil_stream_fstream::id_ [private] |
Definition at line 44 of file vil_stream_fstream.h.
vil_streampos vil_stream_fstream::end_ [mutable, private] |
Definition at line 45 of file vil_stream_fstream.h.
1.5.1