base virtual class for IO
More...
#include <stream.hpp>
base virtual class for IO
Definition at line 41 of file stream.hpp.
◆ Error
typedef ::or_error OpenRaw::IO::Stream::Error |
Error type.
- See also
- or_error
Definition at line 54 of file stream.hpp.
◆ Ptr
typedef std::shared_ptr<Stream> OpenRaw::IO::Stream::Ptr |
◆ Stream()
OpenRaw::IO::Stream::Stream |
( |
const char * |
filename | ) |
|
Construct the file
- Parameters
-
filename | the full uri for the file |
Definition at line 30 of file stream.cpp.
◆ ~Stream()
OpenRaw::IO::Stream::~Stream |
( |
| ) |
|
|
virtual |
◆ close()
virtual int OpenRaw::IO::Stream::close |
( |
| ) |
|
|
pure virtual |
◆ get_error()
Error OpenRaw::IO::Stream::get_error |
( |
| ) |
|
|
inline |
◆ get_path()
const std::string & OpenRaw::IO::Stream::get_path |
( |
| ) |
const |
|
inline |
◆ open()
virtual Error OpenRaw::IO::Stream::open |
( |
| ) |
|
|
pure virtual |
◆ read()
virtual int OpenRaw::IO::Stream::read |
( |
void * |
buf, |
|
|
size_t |
count |
|
) |
| |
|
pure virtual |
◆ readByte()
uint8_t OpenRaw::IO::Stream::readByte |
( |
| ) |
|
|
noexcept |
◆ seek()
virtual int OpenRaw::IO::Stream::seek |
( |
off_t |
offset, |
|
|
int |
whence |
|
) |
| |
|
pure virtual |
◆ set_error()
void OpenRaw::IO::Stream::set_error |
( |
Error |
error | ) |
|
|
inlineprotected |
The documentation for this class was generated from the following files: