A vil_stream implementation using std::fstream.
More...
#include <vil_stream_fstream.h>
|
(Note that these are not member functions.)
|
| vil_stream * | vil_open (char const *what, char const *how="r") |
| | make a vil_stream from a filename, an URL, etc. More...
|
| |
| float | vil_stream_read_big_endian_float (vil_stream *is) |
| | Reads in a 4-byte big-endian float. More...
|
| |
| void | vil_stream_read_big_endian_int_16 (vil_stream *is, vxl_uint_16 *data, unsigned n) |
| | Reads in n 16 bit unsigned ints. More...
|
| |
| void | vil_stream_write_big_endian_uint_16 (vil_stream *, vxl_uint_16) |
| |
| void | vil_stream_write_little_endian_uint_16 (vil_stream *, vxl_uint_16) |
| |
| void | vil_stream_write_big_endian_uint_32 (vil_stream *, vxl_uint_32) |
| |
| void | vil_stream_write_little_endian_uint_32 (vil_stream *, vxl_uint_32) |
| |
| void | vil_stream_write_big_endian_int_32 (vil_stream *, vxl_int_32) |
| |
| void | vil_stream_write_little_endian_int_32 (vil_stream *, vxl_int_32) |
| |
A vil_stream implementation using std::fstream.
Definition at line 23 of file vil_stream_fstream.h.
◆ vil_stream_fstream()
| vil_stream_fstream::vil_stream_fstream |
( |
char const * |
filename, |
|
|
char const * |
mode |
|
) |
| |
◆ ~vil_stream_fstream()
| vil_stream_fstream::~vil_stream_fstream |
( |
| ) |
|
|
overrideprotected |
◆ file_size()
◆ ok()
| bool vil_stream_fstream::ok |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ read()
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 98 of file vil_stream_fstream.cxx.
◆ ref()
up/down the reference count.
Definition at line 45 of file vil_stream.h.
◆ seek()
◆ tell()
◆ underlying_stream()
| std::fstream& vil_stream_fstream::underlying_stream |
( |
| ) |
|
|
inlineprotected |
◆ unref()
| void vil_stream::unref |
( |
| ) |
|
|
inherited |
◆ write()
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 76 of file vil_stream_fstream.cxx.
◆ vil_open()
| vil_stream * vil_open |
( |
char const * |
what, |
|
|
char const * |
how = "r" |
|
) |
| |
|
related |
◆ vil_stream_read_big_endian_float()
| float vil_stream_read_big_endian_float |
( |
vil_stream * |
is | ) |
|
|
related |
◆ vil_stream_read_big_endian_int_16()
| void vil_stream_read_big_endian_int_16 |
( |
vil_stream * |
is, |
|
|
vxl_uint_16 * |
data, |
|
|
unsigned |
n |
|
) |
| |
|
related |
Reads in n 16 bit unsigned ints.
Caller is responsible for allocating enough space.
Definition at line 134 of file vil_stream_read.cxx.
◆ vil_stream_write_big_endian_int_32()
| void vil_stream_write_big_endian_int_32 |
( |
vil_stream * |
, |
|
|
vxl_int_32 |
|
|
) |
| |
|
related |
◆ vil_stream_write_big_endian_uint_16()
| void vil_stream_write_big_endian_uint_16 |
( |
vil_stream * |
, |
|
|
vxl_uint_16 |
|
|
) |
| |
|
related |
◆ vil_stream_write_big_endian_uint_32()
| void vil_stream_write_big_endian_uint_32 |
( |
vil_stream * |
, |
|
|
vxl_uint_32 |
|
|
) |
| |
|
related |
◆ vil_stream_write_little_endian_int_32()
| void vil_stream_write_little_endian_int_32 |
( |
vil_stream * |
, |
|
|
vxl_int_32 |
|
|
) |
| |
|
related |
◆ vil_stream_write_little_endian_uint_16()
| void vil_stream_write_little_endian_uint_16 |
( |
vil_stream * |
, |
|
|
vxl_uint_16 |
|
|
) |
| |
|
related |
◆ vil_stream_write_little_endian_uint_32()
| void vil_stream_write_little_endian_uint_32 |
( |
vil_stream * |
, |
|
|
vxl_uint_32 |
|
|
) |
| |
|
related |
◆ end_
◆ f_
| std::fstream vil_stream_fstream::f_ |
|
mutableprivate |
◆ flags_
| std::ios::openmode vil_stream_fstream::flags_ |
|
private |
◆ id_
| int vil_stream_fstream::id_ |
|
private |
The documentation for this class was generated from the following files: