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

Definition at line 17 of file vil1_stream_fstream.h.
Public Member Functions | |
| vil1_stream_fstream (char const *filename, char const *mode) | |
| bool | ok () const |
| Return false if the stream is broken. | |
| vil1_streampos | write (void const *buf, vil1_streampos n) |
| Write n bytes from buf. Returns number of bytes written. | |
| vil1_streampos | read (void *buf, vil1_streampos n) |
| Read n bytes into buf. Returns number of bytes read. | |
| vil1_streampos | tell () const |
| Return file pointer. | |
| void | seek (vil1_streampos position) |
| Goto file pointer. | |
| void | ref () |
| up/down the reference count. | |
| void | unref () |
Protected Member Functions | |
| ~vil1_stream_fstream () | |
Private Attributes | |
| vcl_ios_openmode | flags_ |
| vcl_fstream | f_ |
| int | id_ |
| vil1_stream_fstream::vil1_stream_fstream | ( | char const * | filename, | |
| char const * | mode | |||
| ) |
Definition at line 37 of file vil1_stream_fstream.cxx.
| vil1_stream_fstream::~vil1_stream_fstream | ( | ) | [protected] |
Definition at line 56 of file vil1_stream_fstream.cxx.
| bool vil1_stream_fstream::ok | ( | ) | const [inline, virtual] |
Return false if the stream is broken.
Implements vil1_stream.
Definition at line 23 of file vil1_stream_fstream.h.
| vil1_streampos vil1_stream_fstream::write | ( | void const * | buf, | |
| vil1_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 vil1_stream.
Definition at line 61 of file vil1_stream_fstream.cxx.
| vil1_streampos vil1_stream_fstream::read | ( | void * | buf, | |
| vil1_streampos | n | |||
| ) | [virtual] |
Read n bytes into buf. Returns number of bytes read.
The return value is less than n only at eof.
Implements vil1_stream.
Definition at line 80 of file vil1_stream_fstream.cxx.
| vil1_streampos vil1_stream_fstream::tell | ( | ) | const [virtual] |
Return file pointer.
Implements vil1_stream.
Definition at line 110 of file vil1_stream_fstream.cxx.
| void vil1_stream_fstream::seek | ( | vil1_streampos | position | ) | [virtual] |
| void vil1_stream::ref | ( | ) | [inline, inherited] |
| void vil1_stream::unref | ( | ) | [inherited] |
Definition at line 31 of file vil1_stream.cxx.
vcl_ios_openmode vil1_stream_fstream::flags_ [private] |
Definition at line 33 of file vil1_stream_fstream.h.
vcl_fstream vil1_stream_fstream::f_ [mutable, private] |
Definition at line 34 of file vil1_stream_fstream.h.
int vil1_stream_fstream::id_ [private] |
Definition at line 35 of file vil1_stream_fstream.h.
1.5.1