|
libopenraw
|
#include <file.hpp>
Public Member Functions | |
| File (const char *filename) | |
| File (const File &f)=delete | |
| File & | operator= (const File &)=delete |
| virtual Error | open () override |
| virtual int | close () override |
| virtual int | seek (off_t offset, int whence) override |
| virtual int | read (void *buf, size_t count) override |
| virtual off_t | filesize () override |
Public Member Functions inherited from OpenRaw::IO::Stream | |
| Stream (const char *filename) | |
| Error | get_error () |
| const std::string & | get_path () const |
| uint8_t | readByte () noexcept(false) |
Additional Inherited Members | |
Public Types inherited from OpenRaw::IO::Stream | |
| typedef std::shared_ptr< Stream > | Ptr |
| typedef ::or_error | Error |
Protected Member Functions inherited from OpenRaw::IO::Stream | |
| void | set_error (Error error) |
| OpenRaw::IO::File::File | ( | const char * | filename | ) |
|
overridevirtual |
close the file
Implements OpenRaw::IO::Stream.
Definition at line 56 of file file.cpp.
Referenced by File().
|
overridevirtual |
open the file
Implements OpenRaw::IO::Stream.
Definition at line 47 of file file.cpp.
References OpenRaw::IO::Stream::get_path().
|
overridevirtual |
read in the file. Semantics are similar to POSIX
Implements OpenRaw::IO::Stream.
|
overridevirtual |
seek in the file. Semantics are similar to POSIX
Implements OpenRaw::IO::Stream.
1.8.13